diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-11 01:19:13 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-11 01:19:13 -0300 |
commit | 977be1ea61943917b9def025d59b8ef493810452 (patch) | |
tree | 39d6c41e5de35ced084cf11a652d6d28759c0e8b | |
parent | 56bbf899a62e6ebf33a4c2dd2b1b1bd7e1b6da72 (diff) |
test is nicer
-rwxr-xr-x | git-shell-commands/delete-repo | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-shell-commands/delete-repo b/git-shell-commands/delete-repo index 5731272..1e4350e 100755 --- a/git-shell-commands/delete-repo +++ b/git-shell-commands/delete-repo @@ -6,7 +6,7 @@ set -e for repo in $@; do - if [ -z "$repo" ]; then continue; fi + test ! -d "$repo" && continue # lo and behold absolute horror rm -rf "$repo".git |