From: Chase Bolt Date: Sun, 19 Feb 2017 04:00:46 +0000 (-0800) Subject: dont strip for docker containers that cwd is / X-Git-Tag: v0.5.0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dcf94dd3d6d97387479595c0c2f8bb6c277cff8;p=thirdparty%2Fdehydrated.git dont strip for docker containers that cwd is / --- diff --git a/dehydrated b/dehydrated index ec3a6ae..a441229 100755 --- a/dehydrated +++ b/dehydrated @@ -161,7 +161,7 @@ load_config() { fi # Remove slash from end of BASEDIR. Mostly for cleaner outputs, doesn't change functionality. - BASEDIR="${BASEDIR%%/}" + [[ "$BASEDIR" != "/" ]] && BASEDIR="${BASEDIR%%/}" # Check BASEDIR and set default variables [[ -d "${BASEDIR}" ]] || _exiterr "BASEDIR does not exist: ${BASEDIR}"