Skip to content

Commit

Permalink
doc(install): remove arch and os from binary artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkje committed Mar 15, 2024
1 parent 5d22fa4 commit 94b9f9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ URL="https://github.com/emilkje/cwc/releases/latest/download/cwc-$OS-$ARCH$EXT"

# Download the correct binary
if command -v wget > /dev/null; then
wget "$URL" -O "cwc-$OS-$ARCH$EXT"
wget "$URL" -O "cwc$EXT"
elif command -v curl > /dev/null; then
curl -L "$URL" -o "cwc-$OS-$ARCH$EXT"
curl -L "$URL" -o "cwc$EXT"
else
echo "Error: Neither wget nor curl is installed."
exit 1
fi

# Make it executable (not necessary for Windows)
if [ "$OS" != "windows" ]; then
chmod +x "cwc-$OS-$ARCH$EXT"
chmod +x "cwc$EXT"
fi

echo "Downloaded cwc for $OS-$ARCH"

0 comments on commit 94b9f9e

Please sign in to comment.