From 12f2658f9fceabcce9b6bb955945c037ce8487be Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 4 Jan 2022 14:34:43 +0200 Subject: [PATCH] Fix to pass version as second arg. --- src/chapter.sh | 2 +- src/name.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chapter.sh b/src/chapter.sh index 3f11d4c..277f495 100755 --- a/src/chapter.sh +++ b/src/chapter.sh @@ -13,7 +13,7 @@ command -v curl >/dev/null 2>&1 || { # set the query (default: 1 John 3:16-18) SCRIPTURE="${1:-62 3:16-18}" # set the translation (default: kjv) -: "${VERSION:=kjv}" +VERSION="${2:-kjv}" # check if we have options while :; do diff --git a/src/name.sh b/src/name.sh index 2dccde9..5bbe920 100755 --- a/src/name.sh +++ b/src/name.sh @@ -12,7 +12,7 @@ command -v curl >/dev/null 2>&1 || { # set the query (default: 1 John 3:16-18) SCRIPTURE="${1:-62 3:16-18}" # set the translation (default: kjv) -: "${VERSION:=kjv}" +VERSION="${2:-kjv}" # check if we have options while :; do