mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01: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:
1 parent
58cd832497
commit
89e458a3bb
1 file changed
+7
-1
+7
-1
@@ -244,4 +244,10 @@ main() {
|
|||||||
nixos-install --no-channel-copy --no-root-password --system "$nixos_system" --root "$mountPoint"
|
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
|
||||||
Reference in new issue
Block a user