From 0dcf94dd3d6d97387479595c0c2f8bb6c277cff8 Mon Sep 17 00:00:00 2001 From: Chase Bolt Date: Sat, 18 Feb 2017 20:00:46 -0800 Subject: [PATCH] dont strip for docker containers that cwd is / --- dehydrated | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"