mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 03:51:27 +00:00
curl --fail
This commit is contained in:
parent
c95b9d0f62
commit
4df84db453
|
@ -153,7 +153,7 @@ EOF
|
||||||
|
|
||||||
setupConf() {
|
setupConf() {
|
||||||
mkdir -p ${LOCAL_FLAKE_DIR}
|
mkdir -p ${LOCAL_FLAKE_DIR}
|
||||||
if ! curl "${CONFIG_URL}" \
|
if ! curl --fail "${CONFIG_URL}" \
|
||||||
| tar -xz -C ${LOCAL_FLAKE_DIR} --strip-components=1 --exclude=".*"
|
| tar -xz -C ${LOCAL_FLAKE_DIR} --strip-components=1 --exclude=".*"
|
||||||
then
|
then
|
||||||
echo "Error downloading/extracting top level flake configuration!"
|
echo "Error downloading/extracting top level flake configuration!"
|
||||||
|
@ -389,12 +389,12 @@ installNix() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Downloading install script from ${installURL}..."
|
echo "Downloading install script from ${installURL}..."
|
||||||
if ! curl "${installURL}" -o "${tmpNixInstall}" &>/dev/null; then
|
if ! curl --fail "${installURL}" -o "${tmpNixInstall}" &>/dev/null; then
|
||||||
echo "Failure while downloading Nix install script!"
|
echo "Failure while downloading Nix install script!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! sha="$(curl "${shaURL}")"; then
|
if ! sha="$(curl --fail "${shaURL}")"; then
|
||||||
echo "Failure while downloading Nix install script sha!"
|
echo "Failure while downloading Nix install script sha!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue