From 259fba76b8b720c43b3c51b2d85c76dd025b6429 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 11 Apr 2023 10:23:51 -0700 Subject: [PATCH] fixed rundir contexts --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)"