Updated logfile name generation to strip final extension from scriptName
This commit is contained in:
parent
e2b7b5976d
commit
841fbf2bc3
@ -141,7 +141,8 @@ errorExplain[254]="Could not connect with CloudFlare API. Please re-run this scr
|
||||
## Logging parameters -- default set to scriptname.ext.log in same
|
||||
## directory as this script
|
||||
scriptPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
logFile="$scriptPath/$(basename ${0}).log"
|
||||
scriptName="$(basename ${0})"
|
||||
logFile="$scriptPath/${scriptName%.*}.log"
|
||||
|
||||
|
||||
### Process script parameters
|
||||
|
Loading…
Reference in New Issue
Block a user