ajustements

This commit is contained in:
neox 2024-07-10 18:03:14 +02:00
parent 5d0c42df91
commit 117c715526
No known key found for this signature in database
GPG Key ID: 57BC26A3687116F6
1 changed files with 2 additions and 12 deletions

View File

@ -106,18 +106,8 @@ echo -e "${BLUE}Installing GNU Guix...${NC}"
herd start cow-store /mnt herd start cow-store /mnt
install_guix() { install_guix() {
tmpfile=$(mktemp) guix system init config.scm /mnt && return 0
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 return 1
else
return 0
fi
} }
max_retries=5 max_retries=5