Fix WDIR evaluation when called via symlink
This commit is contained in:
2
catmd.sh
2
catmd.sh
@@ -376,7 +376,7 @@ FO_CODEBLOCK="$COF_LIGHTGRAY$COB_LIGHTGRAY"
|
||||
FO_QUOTE='\033[96;100m'
|
||||
|
||||
# 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
|
||||
|
||||
# Provide catmd also as function if this script is sourced
|
||||
|
Reference in New Issue
Block a user