diff --git a/.gitignore b/.gitignore index 71103e0..fa4689c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/stepTemplateExample.sh +/seqTemplateExample.sh diff --git a/stepTemplate.sh b/seqTemplate.sh old mode 100755 new mode 100644 similarity index 100% rename from stepTemplate.sh rename to seqTemplate.sh diff --git a/sequencer/sequencer.sh b/sequencer/sequencer.sh index d4fa4ee..908c2d6 100755 --- a/sequencer/sequencer.sh +++ b/sequencer/sequencer.sh @@ -1,15 +1,15 @@ #!/bin/bash -## Sequencer script is doing nothing on its own. It is included by a step definition -## script which uses the sequencer to provide sequencial operations with or without -## user interaction (see stepTemplate.sh) +## Sequencer script is doing nothing on its own. It is included by a squence script +## which uses the sequencer.sh to provide sequencial operations with or without +## user interaction (see seqTemplate.sh) ## Start of generic script part QUIET=0 ERNO=0 MAX_STEP=255 -TEMPLATE_NAME=stepTemplateExample.sh +TEMPLATE_NAME=seqTemplateExample.sh function helpSequencer() { echo "Usage: ${0##*/} [Options] [Step Number(s)]" @@ -170,7 +170,7 @@ function createTemplate() { return 0 } -# Always display sequencer help and, if available, definition script help +# Always display sequencer help and, if available, sequence help function displayHelp() { helpSequencer @@ -179,8 +179,8 @@ function displayHelp() { existsFunction step_1 if [ $? -ne 0 ] ; then echo -e "\n It seems ${0##*/} was called directly." - echo -e " Please create a step definition script first.\n" - read -p " Create a step definition template now? y/n(default)? " answer + echo -e " Please create a sequence script first.\n" + read -p " Create a template now? y/n(default)? " answer case $answer in [yY]) createTemplate @@ -206,7 +206,7 @@ function displayHelp() { fi printf ' Step %3s : ' $i - # Display step help only if function exists + # Display step help only if info function exists existsFunction step_${i}_info if [ $? -eq 0 ] ; then step_${i}_info $i