Small template adjustement
New variable SCRIPT_FILE holding script file name
This commit is contained in:
@@ -810,8 +810,8 @@ toolName=mytool
|
||||
WDIR="\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)"
|
||||
APTOPT=
|
||||
CONFIG=0
|
||||
SCRIPT_NAME=\$(basename -- \$0)
|
||||
SCRIPT_NAME=\${SCRIPT_NAME%%.*}
|
||||
SCRIPT_FILE=\$(basename -- \$0)
|
||||
SCRIPT_NAME=\${SCRIPT_FILE%%.*}
|
||||
CONFIG_FILE_NAME="\${SCRIPT_NAME}.cfg"
|
||||
CONFIG_FILE_TEMPLATE="\$WDIR/\${CONFIG_FILE_NAME}.example"
|
||||
|
||||
|
Reference in New Issue
Block a user