#!/bin/sh for remote in ko repo gph github2 sfjp sf.net do printf "%s: " "$remote" git push "$remote" "$@" || exit $? done case "$#" in 0) printf "github mirror: " git push github "$@" ;; *) echo "No push to github" ;; esac