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