]> git.madduck.net Git - code/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix commit 96f74d26de89fa1e390e26d015208163f689629e
authorRichard Hartmann <richih.mailinglist@gmail.com>
Sat, 13 Jul 2013 18:25:52 +0000 (20:25 +0200)
committerRichard Hartmann <richih.mailinglist@gmail.com>
Sat, 13 Jul 2013 18:25:52 +0000 (20:25 +0200)
Quote $1; change

check_directory=$1

to

check_directory="$1"

vcsh

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