fe for fetch, pu for push. Also improve the usage output if a wrong method was
used.
# Select the method, fetch and push is possible.
-if [ x$1 = x -o x$1 = xfetch ]; then
+if [ x$1 = x -o x$1 = xfetch -o x$1 = xfe ]; then
method=fetch
-elif [ x$1 = xpush ]; then
+elif [ $1 = push -o $1 = pu ]; then
method=push
else
- echo "Unsupported method '$1'. Only 'fetch' and 'push' is supported." >&2
+ echo "Usage: sync.sh [fetch | fe | push | pu ]"
+ echo
+ echo "fetch: Fetch from all remotes."
+ echo "psuh: Push to all remotes."
exit 1
fi