From 89e458a3bb3693e769bfb2b2447c3fe72092d498 Mon Sep 17 00:00:00 2001 From: iFreilicht <9742635+iFreilicht@users.noreply.github.com> Date: Sun, 27 Oct 2024 15:59:33 +0000 Subject: [PATCH] UX: be specific if disko-install failed or succeeded (#847) UX: be specific if disko-install failed or succeeded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Output success message to stdout Co-authored-by: Jörg Thalheim --- disko-install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/disko-install b/disko-install index e4cab151..a10ff80d 100755 --- a/disko-install +++ b/disko-install @@ -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