mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
minor script fix (#1423)
This commit is contained in:
parent
e87353c012
commit
4c50cc7551
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue