Skip to content

Commit 9395000

Browse files
committed
fix: Add Follow redirects for github
1 parent 45cebf9 commit 9395000

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ sudo mkdir -p $INSTALL_DIR
9696

9797
# Download and extract phoenixd
9898
echo "Downloading phoenixd..."
99-
if ! curl -s -O "$PHOENIXD_ZIP"; then
99+
if ! curl -sL -O "$PHOENIXD_ZIP"; then
100100
echo "❌ Failed to download phoenixd from ${PHOENIXD_ZIP}" >&2
101101
exit 1
102102
fi
103103

104104
if [[ ! -f "verify.sh" ]]; then
105105
echo "Downloading the verification script..."
106-
if ! curl -s -O "$VERIFIER_URL"; then
106+
if ! curl -sL -O "$VERIFIER_URL"; then
107107
echo "❌ Failed to download the verification script." >&2
108108
exit 1
109109
fi

scripts/verify.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ verify_package() {
4949
fi
5050

5151
# Download and import PGP key
52-
if ! curl -s -O "$ACINQ_PGP_KEY" 2>/dev/null; then
52+
if ! curl -sL -O "$ACINQ_PGP_KEY" 2>/dev/null; then
5353
echo "❌ Failed to download PGP key." >&2
5454
return 1
5555
fi
@@ -60,7 +60,7 @@ verify_package() {
6060
fi
6161

6262
# Download and verify signature
63-
if ! curl -s -O "$PHOENIXD_SIG" 2>/dev/null; then
63+
if ! curl -sL -O "$PHOENIXD_SIG" 2>/dev/null; then
6464
echo "❌ Failed to download signature file." >&2
6565
return 1
6666
fi

0 commit comments

Comments
 (0)