From 39c88f0dd054045f295b7c694e09a14458aea44e Mon Sep 17 00:00:00 2001 From: Diego Pasqualin <dpasqualin@c3sl.ufpr.br> Date: Sun, 17 Feb 2013 13:09:13 -0300 Subject: [PATCH] common.sh: Fix test directory with spaces on its name --- common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.sh b/common.sh index 9d753fd..292f5a3 100644 --- a/common.sh +++ b/common.sh @@ -47,7 +47,7 @@ checkUser() # Check whether the output file will be in a existent and writable directory checkOutput() { - local dir="$(dirname $1)" + local dir="$(dirname "$1")" test -d "$dir" -a -w "$dir" return $? } -- GitLab