Skip to content

Commit

Permalink
branch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vahagz committed Feb 5, 2024
1 parent ae79eb0 commit 7d7e07a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ for module in $(echo $json | jq -cr '.modules[]'); do
dependencies=$(echo $module | jq -cr ".dependencies[]")
moduleGoPath=$(echo $json | jq -cr ".list.\"$moduleName\".goPath")
moduleRootPath=$(echo $json | jq -cr ".list.\"$moduleName\".rootPath")
moduleUrl=$(echo $json | jq -cr ".list.\"$moduleName\".url")
moduleBranch=$(echo $json | jq -cr ".list.\"$moduleName\".branch")

echo -e "${GREEN}cd $root/$moduleGoPath${RESET}"
Expand All @@ -40,8 +39,8 @@ for module in $(echo $json | jq -cr '.modules[]'); do
git commit -m "'$depListStr' dependencies upgrade"
echo -e "${GREEN}git push${RESET}"
git push
echo -e "${GREEN}git checkout $branch${RESET}"
git checkout $branch
echo -e "${GREEN}git checkout $moduleBranch${RESET}"
git checkout $moduleBranch
echo -e "${GREEN}git pull${RESET}"
git pull
done

0 comments on commit 7d7e07a

Please sign in to comment.