dont strip for docker containers that cwd is /

This commit is contained in:
Chase Bolt
2017-02-18 20:00:46 -08:00
committed by Lukas Schauer
parent 9ea75e7cfb
commit 0dcf94dd3d

View File

@@ -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}"