From b91fd028b8c1949bda8a1f0e484305b8a1f37be3 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 23 May 2019 21:46:34 -0600 Subject: [PATCH] fix symantec best practice on empty var --- backup_new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_new.sh b/backup_new.sh index c98244d..7e7500b 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -71,7 +71,7 @@ stamp () { ## script related # store logfile in the same directory as this script file using the same file # name as the script but with the extension '.log' -scriptPath="$( CDPATH= cd -- "$( dirname -- "$0" )" && pwd -P )" +scriptPath="$( CDPATH='' cd -- "$( dirname -- "$0" )" && pwd -P )" scriptName="$( basename "$0" )" logFile="$scriptPath/${scriptName%.*}.log" # borg output verbosity -- normal