diff --git a/vcsh b/vcsh
index e74910e9aca883a0c92673b7a7b60a8f5f41866a..b240b602e21a6e2d9f5920f62e9b2cf3e2cf80e5 100755
--- a/vcsh
+++ b/vcsh
@@ -359,7 +359,7 @@ if echo $VCSH_REPO_NAME | grep -q '/'; then
 fi
 
 check_dir() {
-	check_directory=$1
+	check_directory="$1"
 	if [ ! -d "$check_directory" ]; then
 		if [ -e "$check_directory" ]; then
 			fatal "'$check_directory' exists but is not a directory" 13