Skip to content

Commit

Permalink
Fixes error in customizer when the application name matches the original
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlcerreca authored Nov 18, 2024
1 parent 29bb9f3 commit 25d8343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion customizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ echo "Renaming directories to $DATAMODEL"
find ./ -name "mymodel" -type d | sed "p;s/mymodel/${DATAMODEL,,}/" | tr '\n' '\0' | xargs -0 -n 2 mv

# Rename app
if [[ $APPNAME ]]
if [[ $APPNAME != MyApplication ]]
then
echo "Renaming app to $APPNAME"
find ./ -type f \( -name "MyApplication.kt" -or -name "settings.gradle.kts" -or -name "*.xml" \) -exec sed -i.bak "s/MyApplication/$APPNAME/g" {} \;
Expand Down

0 comments on commit 25d8343

Please sign in to comment.