Skip to content

Commit

Permalink
refactor wget curl
Browse files Browse the repository at this point in the history
Signed-off-by: hunnywar <[email protected]>
  • Loading branch information
hunnywar committed Jan 8, 2025
1 parent 84b430c commit a0b9e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/get-ttyd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ target_file="$HOME/ttyd-$arch"
if command -v wget &>/dev/null; then
wget -O "$target_file" "$download_url"
elif command -v curl &>/dev/null; then
curl -L -o "$target_file" "$download_url"
curl -fsSL -o "$target_file" "$download_url"
else
echo "Neither wget nor curl is available. Please install one of them."
exit 1
Expand Down

0 comments on commit a0b9e92

Please sign in to comment.