mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
bootstrap curl if apt is present
This commit is contained in:
parent
63bb08e6a3
commit
4d85fa3fe2
@ -157,6 +157,11 @@ fetch(){
|
||||
curl --fail -Ss -L "\$1"
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
wget "\$1" -O-
|
||||
elif command -v apt-get >/dev/null 2>&1; then
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -y curl
|
||||
curl --fail -Ss -L "\$1"
|
||||
else
|
||||
echo "no downloader (curl or wget) found, bailing out" >&2
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user