Justfile: leave failed update versions in place

This commit is contained in:
steveej 2019-03-06 00:02:00 +01:00
parent f3f8217ed8
commit 0913cdc4d5

View file

@ -87,13 +87,11 @@ update-this-device rebuild-mode='switch':
export SYSREBUILD_LOG=.$(hostname -s)_sysrebuild.log
just -v rebuild-this-device dry-activate || {
echo ERROR: Update failed, reverting ${outfile}...
git checkout ${outfile}
exit 1
}
just -v rebuild-this-device {{rebuild-mode}} || {
echo ERROR: Rebuilding in {{rebuild-mode}}-mode failed
git checkout ${outfile}
exit 1
}