From bc09b0df1277c31590967737dd1691393273abab Mon Sep 17 00:00:00 2001 From: Joergi <1439809+joergi@users.noreply.github.com> Date: Fri, 2 Jun 2023 14:28:17 +0000 Subject: [PATCH] use actual strict mode downloader --- helloworld-downloader.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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