Skip to content

Commit

Permalink
fix: fail script process on errors (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
juev authored Sep 4, 2024
1 parent edeeff9 commit bbb18aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git.io.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
#!/bin/bash

set -euxo pipefail

GOBREW_BIN_DIR=$HOME/.gobrew/bin

Expand Down Expand Up @@ -65,7 +67,7 @@ fi
echo "Installing gobrew from: $DOWNLOAD_URL"
echo ""

curl -L --progress-bar $DOWNLOAD_URL -o $GOBREW_BIN_DIR/$GOBREW_BIN
curl -L -f --progress-bar $DOWNLOAD_URL -o $GOBREW_BIN_DIR/$GOBREW_BIN

chmod +x $GOBREW_BIN_DIR/$GOBREW_BIN

Expand Down

0 comments on commit bbb18aa

Please sign in to comment.