From: fpunktk Date: Sat, 30 Dec 2017 11:26:11 +0000 (+0100) Subject: simplify destination dir option X-Git-Url: https://fpunktk.de/gitweb/?a=commitdiff_plain;h=1ff613ca1f9e5ee87d0a51bfefd205b37eef94d9;p=anondcim.git simplify destination dir option --- diff --git a/anondcim b/anondcim index aa690a8..027ccc6 100755 --- a/anondcim +++ b/anondcim @@ -53,8 +53,8 @@ do dst_size="$OPTARG" ;; "d") - # enforce a trailing "/" - [ -d "${OPTARG%/}/" ] && dst_dir="${OPTARG%/}/" || die "destination directory \"${OPTARG%/}/\" does not exist" + dst_dir="${OPTARG%/}/" # enforce a trailing "/" + [ -d "$dst_dir" ] || die "destination directory \"$dst_dir\" does not exist" ;; *) err "not recognised: OPTION=$OPTION, OPTARG=$OPTARG"