From 58136f7b5878dab5e0f1a9639915ecfefafe81e6 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 11 Apr 2023 12:00:30 -0700 Subject: [PATCH] fixed execution context variables in demo --- demo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo.sh b/demo.sh index fa6189e..969331a 100755 --- a/demo.sh +++ b/demo.sh @@ -2,8 +2,8 @@ # Initial Vars VERSION=1.1.0 -scriptname="${0##*/}" -rundir="${0%/*}" +scriptname="${BASH_SOURCE[0]##*/}" +rundir="${BASH_SOURCE[0]%/*}" runuser="$(whoami)" source ${rundir}/functions