minor script fix (#1423)

This commit is contained in:
Matthew Fosse 2024-05-01 09:44:22 -07:00 committed by GitHub
parent e87353c012
commit 4c50cc7551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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."
@ -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"
}