minor script fix (#1423)

This commit is contained in:
Matthew Fosse
2024-05-01 19:44:22 +03:00
committed by GitHub
parent e87353c012
commit 4c50cc7551
+1 -1
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"
}