From 65f8ab8dc8e9dcfdcf0d5bf4a1eeadc8b7906845 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Wed, 24 Mar 2021 14:46:53 +0100 Subject: [PATCH] Small template adjustement New variable SCRIPT_FILE holding script file name --- sequencer/sequencer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sequencer/sequencer.sh b/sequencer/sequencer.sh index 883438b..d42fe86 100755 --- a/sequencer/sequencer.sh +++ b/sequencer/sequencer.sh @@ -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"