Skip to content

Commit

Permalink
feat: use curl instead of wget
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Nov 26, 2024
1 parent 176de70 commit 89f8ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/celestia-node.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fi
echo "Downloading from: $URL" | tee -a "$LOGFILE"

# Download the tarball
if ! wget "$URL" >> "$LOGFILE" 2>&1; then
if ! curl -L -o "celestia-node_$PLATFORM.tar.gz" "$URL" >> "$LOGFILE" 2>&1; then
echo "Download failed. Exiting." | tee -a "$LOGFILE"
exit 1
fi
Expand All @@ -124,7 +124,7 @@ else
fi

# Download checksums.txt
if ! wget "https://github.com/celestiaorg/celestia-node/releases/download/$VERSION/checksums.txt" >> "$LOGFILE" 2>&1; then
if ! curl -L -o checksums.txt "https://github.com/celestiaorg/celestia-node/releases/download/$VERSION/checksums.txt" >> "$LOGFILE" 2>&1; then
echo "Failed to download checksums. Exiting." | tee -a "$LOGFILE"
exit 1
fi
Expand Down

0 comments on commit 89f8ce5

Please sign in to comment.