summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/stagit-new-repo2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/stagit-new-repo b/bin/stagit-new-repo
index 69754e6..df67ea4 100755
--- a/bin/stagit-new-repo
+++ b/bin/stagit-new-repo
@@ -28,7 +28,7 @@ chown -R git:git "$srv/$repo.git"
ln -svf "$srv/$repo.git" "$home/"
echo "Creating a static page directory..."
-[ ! -d "$www/$repo" ] && echo "$repo already exists!" && exit 1
+[ -d "$www/$repo" ] && echo "$www/$repo already exists!" && exit 1
mkdir "$www/$repo"
chown -R git:git "$www/$repo"