From 0ba9b1929b5ac59ed6d01b97a03e3f8eee39cf5c Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 30 Aug 2014 01:37:13 -0700 Subject: [PATCH] init: add missing double-quotes and -n check zit_init was using `test "$1"` when it meant `test -n "$1"` instead. --- zit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zit b/zit index 79bc499..eb16154 100755 --- a/zit +++ b/zit @@ -130,7 +130,7 @@ zitdir_init() { } zit_init() { - if test "$1"; then + if test -n "$1"; then zitdir_init "$1" git add -f "$ZIT_FILE" || abort "Failed to add $ZIT_FILE" git commit "$@" || abort "Failed to make first commit for $ZIT_FILE" @@ -205,7 +205,7 @@ help|--help|-h|-?) zit_help "$@" ;; init|track) - zit_init $1 + zit_init "$1" ;; clone) zit_clone "$@" -- 2.32.0.93.g670b81a890