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