mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
UX: be specific if disko-install failed or succeeded (#847)
UX: be specific if disko-install failed or succeeded * Output success message to stdout Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
58cd832497
commit
89e458a3bb
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue