From 0416eb42f5798e8f17845a8bde1afc3925b3d77d Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 25 Nov 2017 14:23:07 +0100 Subject: [PATCH] fix: 80 character per line albentohandy --- albentohandy | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/albentohandy b/albentohandy index eae9952..d8283dd 100755 --- a/albentohandy +++ b/albentohandy @@ -11,15 +11,19 @@ NAME albumtohandy - konvertiert flac to mp3 von einer Sammlung SYNOPSIS - albentohandy [-c] [-i ]/[,[]/]..] [-r] [-z ]/[,[]/]..] [-r] [-z input Datei default=albumlist - -m kopiert das Arbeitsverzeichnis in das angegeben Zielverzeichnis - -S []/ parallel mehr information in der Manpage von parallel - -r löscht das Arbeitsverzeichnis wenn -z oder -m angegeben ist + -m kopiert das Arbeitsverzeichnis + in das angegeben Zielverzeichnis + -S []/ parallel mehr information + in der Manpage von parallel + -r löscht das Arbeitsverzeichnis + wenn -z oder -m angegeben ist -w das Arbeitsverzeichnis angegeben -z erstellt ein Zip Datei @@ -45,7 +49,9 @@ ConvertFlacToMp3() { find $workdir -name '*.flac' | \ sort | \ - parallel $basefile --will-cite --ungroup --eta --progress --sshlogin $parallelopts $scriptdir/flactomp3v2 {} + parallel $basefile --will-cite --ungroup --eta --progress --sshlogin \ + $parallelopts \ + $scriptdir/flactomp3v2 {} } CleanupFlacAndCovers() { @@ -250,19 +256,22 @@ main() { printf "\nPhase %02d of %02d: flac -> mp3\n" $((curphase++)) $phase ConvertFlacToMp3 "$WORK" "$BASEFILE" "$parallelopts" "$SCRIPTPATH" - printf "\nPhase %02d of %02d: remove flac's and cover's\n\n" $((curphase++)) $phase + printf "\nPhase %02d of %02d: " $((curphase++)) $phase + printf "remove flac's and cover's\n\n" CleanupFlacAndCovers "$WORK" # create sha256sum in working directory if [ $checksum == true ]; then - printf "Phase %02d of %02d: create sha256sum\n\n" $((curphase++)) $phase + printf "Phase %02d of %02d: " $((curphase++)) $phase + printf "create sha256sum\n\n" MakeSha256CheckSum "$WORK" fi # make zipfile in the current path # content of zipfile is content of working directory if [ $mkzip == true ]; then - printf "Phase %02d of %02d: create %s\n" $((curphase++)) $phase $zipname + printf "Phase %02d of %02d: " $((curphase++)) $phase + printf " create %s\n" $zipname MakeZipFile "$WORK" "$zipname" printf "\n" fi @@ -275,7 +284,8 @@ main() { fi # delete the working directory - if ( [ $mkzip == true ] || [ $cptodest == true ] ) && [ $removework == true ]; then + if ([ $mkzip == true ] || [ $cptodest == true ]) \ + && [ $removework == true ]; then CleanupWorkDir "$WORK" fi } -- 2.47.3