Skip to content

Commit

Permalink
Update celestia-node.sh to use curl instead of wget (#1816)
Browse files Browse the repository at this point in the history
* This update modifies celestia-node.sh to use curl instead of wget as curl is installed by default on new macs

* This update modifies celestia-node.sh to use curl instead of wget as curl is installed by default on new macs

* This update modifies celestia-node.sh to use curl instead of wget as curl is installed by default on new macs
  • Loading branch information
lukecd authored Nov 28, 2024
1 parent 10ce530 commit 5707d8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 "$URL" -o "celestia-node_$PLATFORM.tar.gz" >> "$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 "https://github.com/celestiaorg/celestia-node/releases/download/$VERSION/checksums.txt" -o "checksums.txt" >> "$LOGFILE" 2>&1; then
echo "Failed to download checksums. Exiting." | tee -a "$LOGFILE"
exit 1
fi
Expand Down Expand Up @@ -280,4 +280,4 @@ else
echo "$TEMP_DIR/celestia version && $TEMP_DIR/celestia --help" | tee -a "$LOGFILE"
;;
esac
fi
fi

0 comments on commit 5707d8f

Please sign in to comment.