Skip to content

Commit

Permalink
minor script fix (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
fossephate authored May 1, 2024
1 parent e87353c commit 4c50cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
get_current_branch() {
if git rev-parse --git-dir > /dev/null 2>&1; then
branch=$(git rev-parse --abbrev-ref HEAD)
branch=${branch//[-]/_} # Replace all dashes with underscores
echo "$branch"
else
echo "Error: Not a git repository."
Expand All @@ -15,7 +16,6 @@ get_current_branch() {
update_app_properties() {
local branch=$1
local file_path="./android/app.properties"

sed -i "s/^id=.*/id=com.cakewallet.$branch/" "$file_path"
sed -i "s/^name=.*/name=$branch-Cake Wallet/" "$file_path"
}
Expand Down

0 comments on commit 4c50cc7

Please sign in to comment.