Fixed "${folder^}Activity: bad substitution" with bash 3.2 on macOS

(cherry picked from commit c36f773eb4)
This commit is contained in:
Sam Lantinga 2024-03-05 13:10:27 -08:00
parent a842bc29fa
commit 75c5cff0bf
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ do
done
# Uppercase the first char in the activity class name because it's Java
ACTIVITY="${folder^}Activity"
ACTIVITY="$(echo $folder | awk '{$1=toupper(substr($1,0,1))substr($1,2)}1')Activity"
sed -i -e "s|\"SDLActivity\"|\"$ACTIVITY\"|g" $BUILDPATH/app/src/main/AndroidManifest.xml
# Fill in a default Activity