From 5fdd6e7eb9f7b2d189014d997a942efbd316dbc6 Mon Sep 17 00:00:00 2001 From: simono41 Date: Wed, 15 Nov 2017 14:01:57 +0100 Subject: [PATCH] fix --- convert_onefile_mp3_copy_cut.sh | 9 +++------ convert_onefile_ogg_copy_cute.sh | 8 ++------ convert_onefile_ogg_cute.sh | 8 ++------ 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/convert_onefile_mp3_copy_cut.sh b/convert_onefile_mp3_copy_cut.sh index c629132..24491ce 100755 --- a/convert_onefile_mp3_copy_cut.sh +++ b/convert_onefile_mp3_copy_cut.sh @@ -2,12 +2,8 @@ set -ex -if [ -z "${cuts}" ]] ;then - cuts=2 -else - cuts="$1" - shift -fi +cuts="$1" +shift name=0 # wenn 100 daten und 3 cuts = 33 files @@ -25,6 +21,7 @@ do fi i="$(expr $i + 1)" + echo "${1%/*}" cd "${1%/*}" # gehe ins Verzeichnis FILENAME=${1##*/} # Dateiname ist alles ab dem letzten '/' diff --git a/convert_onefile_ogg_copy_cute.sh b/convert_onefile_ogg_copy_cute.sh index 28997b0..3e82954 100755 --- a/convert_onefile_ogg_copy_cute.sh +++ b/convert_onefile_ogg_copy_cute.sh @@ -2,12 +2,8 @@ set -ex -if [ -z "${cuts}" ]] ;then - cuts=2 -else - cuts="$1" - shift -fi +cuts="$1" +shift name=0 # wenn 100 daten und 3 cuts = 33 files diff --git a/convert_onefile_ogg_cute.sh b/convert_onefile_ogg_cute.sh index 8bcd63c..5a706c3 100755 --- a/convert_onefile_ogg_cute.sh +++ b/convert_onefile_ogg_cute.sh @@ -2,12 +2,8 @@ set -ex -if [ -z "${cuts}" ]] ;then - cuts=2 -else - cuts="$1" - shift -fi +cuts="$1" +shift name=0 # wenn 100 daten und 3 cuts = 33 files