Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Issue #15 fail if not 200
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed May 11, 2017
1 parent c2935f7 commit 4bb8a2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -73,7 +73,7 @@ download() {
esac
if which curl > /dev/null; then
WGET="curl -sSL"
WGET="curl --fail -sSL"
test -z "$GITHUB_TOKEN" || WGET="${WGET} -H \"${HEADER}\""
if [ "${DEST}" != "-" ]; then
WGET="$WGET -o $DEST"
Expand Down
2 changes: 1 addition & 1 deletion samples/godownloader-goreleaser.sh
Expand Up @@ -58,7 +58,7 @@ download() {
esac

if which curl > /dev/null; then
WGET="curl -sSL"
WGET="curl --fail -sSL"
test -z "$GITHUB_TOKEN" || WGET="${WGET} -H \"${HEADER}\""
if [ "${DEST}" != "-" ]; then
WGET="$WGET -o $DEST"
Expand Down
2 changes: 1 addition & 1 deletion samples/godownloader-hugo.sh
Expand Up @@ -58,7 +58,7 @@ download() {
esac

if which curl > /dev/null; then
WGET="curl -sSL"
WGET="curl --fail -sSL"
test -z "$GITHUB_TOKEN" || WGET="${WGET} -H \"${HEADER}\""
if [ "${DEST}" != "-" ]; then
WGET="$WGET -o $DEST"
Expand Down

0 comments on commit 4bb8a2b

Please sign in to comment.