From ddbcd8d69bf3929b3e01b67e5605afe8de1706cb Mon Sep 17 00:00:00 2001 From: dfaw20 Date: Sun, 7 Apr 2024 19:04:43 +0900 Subject: [PATCH] Issue #109 Modified iso.sh to be executable not only with bash but also with sh --- .github/workflows/iso.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/iso.sh b/.github/workflows/iso.sh index dcddb73..a4b2e48 100644 --- a/.github/workflows/iso.sh +++ b/.github/workflows/iso.sh @@ -82,7 +82,9 @@ case "$verinput" in ;; esac -flavourcap=`echo ${flavour:0:1} | tr '[a-z]' '[A-Z]'`${flavour:1} +firstChar=$(echo "$flavour" | cut -c1 | tr '[a-z]' '[A-Z]') +restOfString=$(echo "$flavour" | cut -c2-) +flavourcap="${firstChar}${restOfString}" if [ ! -f ${iso}.z01 ]; then echo -e "\nDownloading Part 1 for ${flavourcap} ${ver}"