forked from Fediversity/Fediversity
Report Nix build errors nicely
This commit is contained in:
parent
57e6127a7a
commit
280b10c214
1 changed files with 6 additions and 0 deletions
|
@ -202,6 +202,12 @@ build_iso () {
|
||||||
--log-format raw --quiet \
|
--log-format raw --quiet \
|
||||||
--out-link "$tmpdir/installer-$2"
|
--out-link "$tmpdir/installer-$2"
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
die 'Something went wrong when building ISO for VM %s.
|
||||||
|
Check the Nix logs and fix things. Possibly there just is no NixOS configuration by that name?' \
|
||||||
|
"$2"
|
||||||
|
fi
|
||||||
|
|
||||||
ln -sf "$tmpdir/installer-$2/iso/installer.iso" "$tmpdir/installer-$2.iso"
|
ln -sf "$tmpdir/installer-$2/iso/installer.iso" "$tmpdir/installer-$2.iso"
|
||||||
|
|
||||||
printf 'done building ISO for VM %s.\n' "$2"
|
printf 'done building ISO for VM %s.\n' "$2"
|
||||||
|
|
Loading…
Add table
Reference in a new issue