diff --git a/plugin.sh b/plugin.sh index f39e032..a2d50c1 100755 --- a/plugin.sh +++ b/plugin.sh @@ -36,6 +36,9 @@ run_abra_cmd() { cd "/root/.abra/apps/$recipe" && \ git remote rm origin && \ git remote add origin "ssh://git@git.autonomic.zone:2222/coop-cloud/$recipe.git" + + git checkout main && git push --set-upstream origin main > /dev/null 2>&1 || \ + git checkout master && git push --set-upstream origin master > /dev/null 2>&1 fi # shellcheck disable=SC2086