Skip to content

Commit

Permalink
UX: be specific if disko-install failed or succeeded (#847)
Browse files Browse the repository at this point in the history
UX: be specific if disko-install failed or succeeded

* Output success message to stdout

Co-authored-by: Jörg Thalheim <[email protected]>
  • Loading branch information
2 people authored and mergify[bot] committed Oct 27, 2024
1 parent 58cd832 commit 89e458a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion disko-install
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,10 @@ main() {
nixos-install --no-channel-copy --no-root-password --system "$nixos_system" --root "$mountPoint"
}

main "$@"
if main "$@"; then
echo "disko-install succeeded"
exit 0
else
echo "disko-install failed" >&2
exit 1
fi

0 comments on commit 89e458a

Please sign in to comment.