diff --git a/helloworld-downloader.sh b/helloworld-downloader.sh index 7d453dc..5dc9c99 100644 --- a/helloworld-downloader.sh +++ b/helloworld-downloader.sh @@ -1,4 +1,9 @@ #!/bin/bash +set -o errexit +#set -o pipefail ## it's failing for line 82 + 86 in downloader +set -o nounset +IFS=$'\n\t' + # ------------------------------------------------------------------ # [Author] joergi - https://github.com/joergi/WireframeDownloader # downloader for all Wireframe magzine issues @@ -25,6 +30,6 @@ recentIssue=$(cat "$file"); # workaround for a known limitation in bash 3.x: http://lists.gnu.org/archive/html/bug-bash/2006-01/msg00018.html # stackoverflow: https://stackoverflow.com/questions/32596123/why-source-command-doesnt-work-with-process-substitution-in-bash-3-2/32596626#32596626 # shellcheck disable=SC1091 -source /dev/stdin <<<"$(curl -s https://raw.githubusercontent.com/joergi/downloader/0.4.3/linux_mac/downloader.sh)" "$downloadUrl" "$OUTDIR" "$recentIssue" "$@" +source /dev/stdin <<<"$(curl -s https://raw.githubusercontent.com/joergi/downloader/0.4.5/linux_mac/downloader.sh)" "$downloadUrl" "$OUTDIR" "$recentIssue" "$@" exit 0