pkgs/den-http-get-updater: fix failure delayer
This commit is contained in:
parent
cc61437fc1
commit
c432ddbff7
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
||||||
gnused,
|
gnused,
|
||||||
jq,
|
jq,
|
||||||
nix,
|
nix,
|
||||||
|
uutils-coreutils-noprefix,
|
||||||
writeScript,
|
writeScript,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -113,7 +114,7 @@ writeScript "den-http-get-updater" (''
|
||||||
nixUnpack = lib.optionalString unpack "--unpack";
|
nixUnpack = lib.optionalString unpack "--unpack";
|
||||||
nixName = lib.optionalString (!builtins.isNull name) "--name \"${lib.escapeShellArg name}\"";
|
nixName = lib.optionalString (!builtins.isNull name) "--name \"${lib.escapeShellArg name}\"";
|
||||||
in ''
|
in ''
|
||||||
for i in {{ 1..30 }}; do
|
for i in {1..30}; do
|
||||||
nixUrlsResult=$(nix-instantiate --eval --json --strict \
|
nixUrlsResult=$(nix-instantiate --eval --json --strict \
|
||||||
"${prefetchUrlLocationShellEscape.file}" \
|
"${prefetchUrlLocationShellEscape.file}" \
|
||||||
-A "${prefetchUrlLocationShellEscape.attrpath}"
|
-A "${prefetchUrlLocationShellEscape.attrpath}"
|
||||||
|
@ -125,7 +126,7 @@ in ''
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "prefetchUrlLocation failed (attempt $i)" 1>&2
|
echo "prefetchUrlLocation failed (attempt $i)" 1>&2
|
||||||
sleep 2
|
${lib.getExe' uutils-coreutils-noprefix "sleep"} 2
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue