mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-07 07:33:26 +02:00
dont strip for docker containers that cwd is /
This commit is contained in:
committed by
Lukas Schauer
parent
9ea75e7cfb
commit
0dcf94dd3d
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user