Skip to content

Commit a360f93

Browse files
committed
hack: Add --retry flags to nushell curl download on centos-10
Without --fail, curl would silently write an HTML error page into the tarball on a transient GitHub release download failure, producing a confusing tar extraction error downstream. Assisted-by: OpenCode (claude-sonnet-4-6) Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 6101d27 commit a360f93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/provision-derived.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ case "${ID}-${VERSION_ID}" in
3535
# nu is not available in CS10
3636
td=$(mktemp -d)
3737
cd $td
38-
curl -kL "https://github.com/nushell/nushell/releases/download/0.103.0/nu-0.103.0-$(uname -m)-unknown-linux-gnu.tar.gz" --output nu.tar.gz
38+
curl -fL --retry 5 --retry-delay 5 --retry-all-errors "https://github.com/nushell/nushell/releases/download/0.103.0/nu-0.103.0-$(uname -m)-unknown-linux-gnu.tar.gz" --output nu.tar.gz
3939
mkdir -p nu && tar zvxf nu.tar.gz --strip-components=1 -C nu
4040
mv nu/nu /usr/bin/nu
4141
rm -rf nu nu.tar.gz

0 commit comments

Comments
 (0)