mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-17 12:26:55 +02:00
dont strip for docker containers that cwd is /
This commit is contained in:
committed by
Lukas Schauer
parent
9ea75e7cfb
commit
0dcf94dd3d
+1
-1
@@ -161,7 +161,7 @@ load_config() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove slash from end of BASEDIR. Mostly for cleaner outputs, doesn't change functionality.
|
# 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
|
# Check BASEDIR and set default variables
|
||||||
[[ -d "${BASEDIR}" ]] || _exiterr "BASEDIR does not exist: ${BASEDIR}"
|
[[ -d "${BASEDIR}" ]] || _exiterr "BASEDIR does not exist: ${BASEDIR}"
|
||||||
|
|||||||
Reference in New Issue
Block a user