From: Bastian Dehn Date: Sun, 6 Dec 2020 11:02:52 +0000 (+0100) Subject: change: cover jpeg default delete X-Git-Tag: v1.0.0^2~63 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=44fd0bacb4dbe7375be56dddab9f94444cf56f73;p=albentohandy.git change: cover jpeg default delete --- diff --git a/albentohandy b/albentohandy index c88aef6..44dc832 100755 --- a/albentohandy +++ b/albentohandy @@ -12,17 +12,17 @@ NAME albumtohandy - konvertiert flac to mp3 von einer Sammlung SYNOPSIS - albentohandy [-3] [-f] [-h] [-i ] [-m ] [-n] [-r] + albentohandy [-3] [-c] [-f] [-h] [-i ] [-m ] [-r] [-w ] OPTIONS -3 convert to mp3 + -c cover.jpg stehen lassen -f convert to flac -h show this help -i input Datei default=albumlist -m kopiert das Arbeitsverzeichnis in das angegeben Zielverzeichnis - -n kein cover.jpg -r löscht das Arbeitsverzeichnis wenn -m angegeben ist -w das Arbeitsverzeichnis angegeben @@ -245,7 +245,7 @@ CleanupCover() local readonly wordir="$1" find $workdir -name 'cover.txt' -exec rm {} \; - if [ $nocover == true ]; then + if [ $cover == false ]; then find $workdir -name 'cover.jpg' -exec rm {} \; fi } @@ -304,19 +304,22 @@ SetDefaultVariables() phase=3 flac=false mp3=false - nocover=false + cover=false removework=false cptodest=false } ReadArguments() { - while getopts "3fhi:m:nrw:" optname; do + while getopts "3cfhi:m:rw:" optname; do case "$optname" in "3") mp3=true; flac=false; ;; + "c") + cover=true; + ;; "f") mp3=false; flac=true; @@ -333,9 +336,6 @@ ReadArguments() dest="$OPTARG" ((phase++)) ;; - "n") - nocover=true - ;; "r") removework=true ;;