diff --git a/vcsh b/vcsh
index f1f50def85502ff90d21f0d1b0f6ae1e380cb15d..41b0ba639e77da679bc3c674ac758232b3aa740e 100755
--- a/vcsh
+++ b/vcsh
@@ -260,7 +260,7 @@ which() {
 
 write_gitignore() {
 	# Don't do anything if the user does not want to write gitignore
-	if [ "x$VCSH_GITIGNORE" = 'xnone' ] then
+	if [ "x$VCSH_GITIGNORE" = 'xnone' ]; then
 		info "Not writing gitignore as '\$VCSH_GITIGNORE' is set to 'none'"
 		exit
 	fi