From: Richard Hartmann Date: Mon, 23 Jan 2012 01:53:59 +0000 (+0100) Subject: Improve quoting X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/ed75afaad17884dcb3eb9b1f66ba45b7f4018dbb Improve quoting --- 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