Fixed "${folder^}Activity: bad substitution" with bash 3.2 on macOS
parent
0b4a195f4b
commit
c36f773eb4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue