Skip to content

Commit

Permalink
Merge branch 'releases/1.11.4' into feature/merge_from_1.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Dec 16, 2024
2 parents cb4ec66 + 6277470 commit 47ba680
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/update_app_group.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh

# This script is used to update the app group of the app.

# Check the number of arguments.
if [ $# -ne 1 ]; then
echo "Usage: $0 <app_group>"
exit 1
fi

# Read the app group from the command line.
app_group=$1

old_app_group="group.exchange.dydx.v4"

ENTITLEMENTS_FILE="./dydxV4/dydxV4/dydx.entitlements"
if [ ! -f $ENTITLEMENTS_FILE ]; then
echo "The entitlements file does not exist."
exit 1
fi

sed -i '' "s/$old_app_group/$app_group/g" $ENTITLEMENTS_FILE

CARTERA_FILE="./dydx/dydxPresenters/dydxPresenters/_v4/GlobalWorkers/Workers/dydxCarteraConfigWorker.swift"
if [ ! -f $CARTERA_FILE ]; then
echo "The cartera file does not exist."
exit 1
fi

sed -i '' "s/$old_app_group/$app_group/g" $CARTERA_FILE

0 comments on commit 47ba680

Please sign in to comment.