diff --git a/bin/doomscript b/bin/doomscript index 203ed0552..1c16caf37 100755 --- a/bin/doomscript +++ b/bin/doomscript @@ -44,7 +44,7 @@ fi # Doom respects $EMACSDIR to tell it where Doom lives. If it fails, then this is # either isn't bash, or it's a posix shell being directly sourced with sh, which # is unsupported. -export EMACSDIR="${EMACSDIR:-$(CDPATH= cd -- $(dirname -- "${BASH_SOURCE:-0}")/.. && pwd)}" +export EMACSDIR="${EMACSDIR:-$(CDPATH= cd -- $(dirname -- "${BASH_SOURCE:-$0}")/.. && pwd)}" if [ ! -f "$EMACSDIR/early-init.el" ]; then >&2 echo "Error: cannot load $EMACSDIR/early-init.el." >&2 echo