]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
dont strip for docker containers that cwd is /
authorChase Bolt <chase.bolt@gmail.com>
Sun, 19 Feb 2017 04:00:46 +0000 (20:00 -0800)
committerLukas Schauer <lukas@schauer.so>
Mon, 10 Jul 2017 14:36:14 +0000 (16:36 +0200)
dehydrated

index ec3a6ae08477cf3f7f1d3189bd2996aa40a7be51..a4412298a5b00aed42386277868201ccc97fe682 100755 (executable)
@@ -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}"