Skip to content

Commit e324089

Browse files
committed
Update upgrade.sh script
* Remove pulling and checkout commands * Get for at least version 17 of Ads API Change-Id: I8ab8d68573ae64de197b169f4efb5b179a347dcf
1 parent 5902285 commit e324089

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

gcp/upgrade.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
CYAN='\033[0;36m' # Cyan
1818
WHITE='\033[0;37m' # White
1919

20-
git pull > /dev/null
21-
git checkout tags/stable
22-
trap "git checkout main" EXIT
23-
2420
SCRIPT_PATH=$(readlink -f "$0" | xargs dirname)
2521
SETTING_FILE="${SCRIPT_PATH}/settings.ini"
2622
NAME=$(git config -f $SETTING_FILE config.name)
@@ -32,9 +28,9 @@ OBSOLETE_CONFIG=0
3228
_check_api_version() {
3329
local api_version=$(cat /tmp/arp.yaml | grep api_version |\
3430
cut -d ":" -f2 | grep -oE '[0-9]+([.][0-9]+)?')
35-
if (( $api_version < 15 )); then
31+
if (( $api_version < 17 )); then
3632
echo "Unsupported API version."
37-
echo "Recommended to update to Google Ads API 16."
33+
echo "Recommended to update to Google Ads API 18."
3834
OBSOLETE_CONFIG=$(($OBSOLETE_CONFIG+1))
3935
fi
4036
}

0 commit comments

Comments
 (0)