Use . for sourcing (POSIX standard)

This commit is contained in:
2022-03-12 16:02:41 +01:00
parent 1e007d436e
commit 090c7780d9

View File

@@ -377,7 +377,7 @@ FO_QUOTE='\033[96;100m'
# Use linefeeder for input handling # Use linefeeder for input handling
WDIR="$(cd "$(dirname -- "$(realpath ${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 . ${WDIR}/linefeeder/linefeeder.sh
# Provide catmd also as function if this script is sourced # Provide catmd also as function if this script is sourced
catmd() { catmd() {
@@ -385,7 +385,7 @@ catmd() {
echo -en "$FO_RESET" echo -en "$FO_RESET"
} }
### Check if script is sourced ### Check if script is sourced for all kinds of shells
### https://stackoverflow.com/a/28776166 ### https://stackoverflow.com/a/28776166
sourced=0 sourced=0
if [ -n "$ZSH_EVAL_CONTEXT" ]; then if [ -n "$ZSH_EVAL_CONTEXT" ]; then