Clarify wordings (usage of sequencer and sequence (seq))
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user