Sequencer new option to open sequence config file when initialised using initSeqConfig
Sequences with exit in step_config, changed to return to support opening config file on first run
This commit is contained in:
@@ -50,7 +50,7 @@ step_1() {
|
||||
toolDownUrl="$1"
|
||||
else
|
||||
echoerr " [E] No image file provided for download"
|
||||
exit -1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
toolDownFile="/tmp/${toolDownUrl//*\//}"
|
||||
@@ -129,7 +129,7 @@ step_10_alias() { ALIAS="setup"; }
|
||||
step_10() {
|
||||
if [ -z "$(ls /etc/default | grep raspi)" ] ; then
|
||||
echoerr " [E] Not on a Raspberry pi"
|
||||
return -1
|
||||
return 1
|
||||
fi
|
||||
|
||||
exe apt update
|
||||
@@ -143,7 +143,7 @@ step_11() {
|
||||
local localUsDefault="$localUs UTF-8"
|
||||
if [ ! -f "$localesConfigLoc" ] ; then
|
||||
echoerr " [E] Install packages locales first"
|
||||
exit -1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exe sed -i "s/#[[:space:]]*\($localUsDefault\)/\1/" "$localesConfigLoc"
|
||||
|
Reference in New Issue
Block a user