]> git.wh0rd.org Git - home.git/commitdiff
simplify sync behavior
authorMike Frysinger <vapier@gentoo.org>
Tue, 12 Jun 2012 19:08:36 +0000 (15:08 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Jun 2012 19:08:36 +0000 (15:08 -0400)
.bin/r

diff --git a/.bin/r b/.bin/r
index 469b9689847a656f488b7b396f9efd762f5591ff..d0a4f0fa7d1254602957d2cc7c7d51b1d1c77964 100755 (executable)
--- a/.bin/r
+++ b/.bin/r
@@ -8,6 +8,10 @@ l)
        cmd=list
        shift
        ;;
+s)
+       cmd=sync
+       shift
+       ;;
 *)
        cmd=$1
        shift
@@ -110,8 +114,8 @@ g-push)
        fi
        exec g push cros-internal HEAD:refs/for/master
        ;;
-s)
-       exec r sync -j16
+sync)
+       [[ $# -eq 0 ]] && set -- -j16
        ;;
 upload)
        args=()