sequencer - fix -pl failing when there is no step 1
This commit is contained in:
10
sequencer.sh
10
sequencer.sh
@@ -1098,7 +1098,7 @@ displayHelp() {
|
||||
|
||||
# Display step help only if info function exists
|
||||
if exists -f "step_${i}_info" ; then
|
||||
"step_${i}_info" "$i"
|
||||
"step_${i}_info" "$i" || true
|
||||
else
|
||||
echo
|
||||
fi
|
||||
@@ -1600,7 +1600,7 @@ sqr::main() {
|
||||
if exists -f seq_config ; then
|
||||
|
||||
# Create/edit configuration file
|
||||
if [ $_seq_configEdit -ne 0 ] ; then
|
||||
if (( _seq_configEdit )) ; then
|
||||
# Suppress seq_config output for editing
|
||||
quietSave=${LOG_LEVEL}
|
||||
LOG_LEVEL=0
|
||||
@@ -1614,15 +1614,13 @@ sqr::main() {
|
||||
[ ${emptyCall} -ne 0 ] && exit 0
|
||||
fi
|
||||
|
||||
if checkStep "${toStart[0]}" >/dev/null ; then
|
||||
if checkStep "${toStart[0]}" >/dev/null 2>&1 ; then
|
||||
if ! seq_config "${seq_args[@]}" ; then
|
||||
error "Configuring sequence failed"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
elif [ ${_seq_configEdit} -ne 0 ] ; then
|
||||
elif (( _seq_configEdit )) ; then
|
||||
error "Sequence does not have a configuration file"
|
||||
return 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user