ajustements
This commit is contained in:
parent
5d0c42df91
commit
117c715526
12
install.sh
12
install.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue