From 1ff613ca1f9e5ee87d0a51bfefd205b37eef94d9 Mon Sep 17 00:00:00 2001 From: fpunktk Date: Sat, 30 Dec 2017 12:26:11 +0100 Subject: [PATCH] simplify destination dir option --- anondcim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.30.2