Issue #109 Modified iso.sh to be executable not only with bash but also with sh

This commit is contained in:
dfaw20 2024-04-07 19:04:43 +09:00
parent b2bf385096
commit ddbcd8d69b
1 changed files with 3 additions and 1 deletions

View File

@ -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}"