]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Also allow explicit push to "origin"
authorRoland Häder <roland@mxchange.org>
Sat, 25 Jun 2022 13:41:49 +0000 (15:41 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Jun 2022 13:41:49 +0000 (15:41 +0200)
push-stick.sh

index 1fcc7dcde7fe754bbb929e822a995a61aecff977..3c02302d81210e9e45b47985dbb25872b3a2ac43 100755 (executable)
@@ -55,6 +55,14 @@ for project in ${LIST}; do
                fi
 
                git push ${FORCE} --all upstream || exit 255
+       elif [ "$1" = "o" ]
+       then
+               if [ -n "$2" ]
+               then
+                       git push origin :"$2"
+               fi
+
+               git push ${FORCE} --all origin || exit 255
        else
                if [ -n "$2" ]
                then