]> git.mxchange.org Git - jprojects-scripts.git/blobdiff - push-stick.sh
Also allow explicit push to "origin"
[jprojects-scripts.git] / 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