From ed75afaad17884dcb3eb9b1f66ba45b7f4018dbb Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Mon, 23 Jan 2012 02:53:59 +0100 Subject: [PATCH] Improve quoting --- vcsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcsh b/vcsh index 0feb17a..fdfeb84 100755 --- a/vcsh +++ b/vcsh @@ -213,8 +213,8 @@ write_gitignore() { fatal "could not move '$tempfile' to '$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME'" 53 } -if [ ! x$VCSH_GITIGNORE = x'exact' ] && [ ! x$VCSH_GITIGNORE = x'recursive' ]; then - fatal "\$VCSH_GITIGNORE must be either 'exact' or 'recursive'" 1 +if [ ! "x$VCSH_GITIGNORE" = 'xexact' ] && [ ! "x$VCSH_GITIGNORE" = 'xrecursive' ]; then + fatal "'\$VCSH_GITIGNORE' must be either 'exact' or 'recursive'" 1 fi if [ "$1" = 'clone' ]; then -- 2.39.2