BusyBox realpath does not support -s flag, fallback to use no flags

This commit is contained in:
timvisee 2020-02-12 14:21:15 +01:00
parent e577677b62
commit b4bba58b76
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172

View File

@ -32,7 +32,7 @@ done
# Ensure that the configuration file is an absolute path
if test -x /usr/bin/realpath; then
CONFIG_FILE=$(realpath -s "$CONFIG_FILE")
CONFIG_FILE=$(realpath -s "$CONFIG_FILE" || realpath "$CONFIG_FILE")
fi
# Ensure that the confguration file is present