-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'releases/1.11.4' into feature/merge_from_1.11.4
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |