Fix WDIR evaluation when called via symlink

This commit is contained in:
2022-03-09 00:53:58 +01:00
parent ebb7a3d10a
commit c073aa13b9

View File

@@ -376,7 +376,7 @@ FO_CODEBLOCK="$COF_LIGHTGRAY$COB_LIGHTGRAY"
FO_QUOTE='\033[96;100m' FO_QUOTE='\033[96;100m'
# Use linefeeder for input handling # Use linefeeder for input handling
WDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)" WDIR="$(cd "$(dirname -- "$(realpath ${BASH_SOURCE[0]})")" >>/dev/null 2>&1 && pwd)"
source ${WDIR}/linefeeder/linefeeder.sh source ${WDIR}/linefeeder/linefeeder.sh
# Provide catmd also as function if this script is sourced # Provide catmd also as function if this script is sourced