Fix erroring out when no changes to commit
Some checks failed
Deploy to Wizard / Deploy (push) Failing after 26s
Some checks failed
Deploy to Wizard / Deploy (push) Failing after 26s
This commit is contained in:
parent
3dcee028ce
commit
3f21f28b42
@ -53,11 +53,15 @@ echo "===== Configure system... ====="
|
||||
echo "===== Failed to configure system ====="
|
||||
}
|
||||
|
||||
compare
|
||||
|
||||
if ! [[ compare | grep -q 'No changes between working and active configurations.' ]]
|
||||
then
|
||||
{ # try commit, save
|
||||
compare
|
||||
commit && save && exit
|
||||
} || { # catch, exit discard and print a very basic error message
|
||||
exit discard
|
||||
echo "Failed to commit and save the configuration."
|
||||
}
|
||||
else
|
||||
echo "No changes to commit."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user