diff --git a/functions b/functions index ddf3cf0..8c8b927 100644 --- a/functions +++ b/functions @@ -2,9 +2,9 @@ # pyr0ball script functions library # Initial Vars -functionsrev=1.1.8 -scriptname="${0##*/}" -rundir="${0%/*}" +functionsrev=1.1.9 +scriptname="${BASH_SOURCE[0]##*/}" +rundir="${BASH_SOURCE[0]%/*}" rundir_absolute=$(cd $rundir && pwd) runuser="$(whoami)" pretty_date="$(date +%Y-%m-%d_%H-%M-%S)"