minor script fix (#1423)

Matthew Fosse committed May 1, 2024 at 09:44 UTC 4c50cc7551fedf7b7d6aded09988c41c7d6d2b76
1 file changed +1 -1
run-android.sh
+1 -1
@@ -4,6 +4,7 @@
4 get_current_branch() {
5 if git rev-parse --git-dir > /dev/null 2>&1; then
6 branch=$(git rev-parse --abbrev-ref HEAD)
7 + branch=${branch//[-]/_} # Replace all dashes with underscores
8 echo "$branch"
9 else
10 echo "Error: Not a git repository."
@@ -15,7 +16,6 @@ get_current_branch() {
16 update_app_properties() {
17 local branch=$1
18 local file_path="./android/app.properties"
18 -
19 sed -i "s/^id=.*/id=com.cakewallet.$branch/" "$file_path"
20 sed -i "s/^name=.*/name=$branch-Cake Wallet/" "$file_path"
21 }