fix symantec best practice on empty var

This commit is contained in:
Asif Bacchus 2019-05-23 21:46:34 -06:00
parent 1b3b151008
commit b91fd028b8

View File

@ -71,7 +71,7 @@ stamp () {
## script related ## script related
# store logfile in the same directory as this script file using the same file # store logfile in the same directory as this script file using the same file
# name as the script but with the extension '.log' # 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" )" scriptName="$( basename "$0" )"
logFile="$scriptPath/${scriptName%.*}.log" logFile="$scriptPath/${scriptName%.*}.log"
# borg output verbosity -- normal # borg output verbosity -- normal