]> git.wh0rd.org - home.git/blobdiff - .bin/r
ssh_config: switch s390 to ed22519
[home.git] / .bin / r
diff --git a/.bin/r b/.bin/r
index 24fc5e4090645fdbb32d926cbfecef8fa8544e90..8c1c87723928a729a89805f8b07eb6ead084b536 100755 (executable)
--- a/.bin/r
+++ b/.bin/r
@@ -17,6 +17,11 @@ s)
        cmd=sync
        shift
        ;;
+rb-all)
+       cmd=rebase
+       shift
+       set -- all "$@"
+       ;;
 *)
        cmd=$1
        shift
@@ -54,7 +59,7 @@ mj_finish() {
 
 repo_root() {
        local root=${PWD}
-       while [[ ! -d ${root}/.repo && ${root} != "/" ]] ; do
+       while [[ ! -d ${root}/.repo && ${root:-/} != "/" ]] ; do
                root=${root%/*}
        done
        echo "${root}"