From 117c715526e3a575dffc80627ad88471832a7ba3 Mon Sep 17 00:00:00 2001 From: neox Date: Wed, 10 Jul 2024 18:03:14 +0200 Subject: [PATCH] ajustements --- install.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index 1f4854c..2366ea8 100644 --- a/install.sh +++ b/install.sh @@ -106,18 +106,8 @@ echo -e "${BLUE}Installing GNU Guix...${NC}" herd start cow-store /mnt install_guix() { - tmpfile=$(mktemp) - guix system init config.scm /mnt >(tee "$tmpfile") - exit_code=$? - - output=$(tail -n 3 "$tmpfile") - rm -f "$tmpfile" - - if [[ $exit_code -ne 0 && $output == *"died unexpectedly"* ]]; then - return 1 - else - return 0 - fi + guix system init config.scm /mnt && return 0 + return 1 } max_retries=5