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

main
Sam Lantinga 2024-03-05 13:10:27 -08:00
parent 0b4a195f4b
commit c36f773eb4
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ do
done done
# Uppercase the first char in the activity class name because it's Java # 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 sed -i -e "s|\"SDLActivity\"|\"$ACTIVITY\"|g" $BUILDPATH/app/src/main/AndroidManifest.xml
# Fill in a default Activity # Fill in a default Activity