]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/setup.sh
tests: properly quote arguments to printf
[ps-cgit] / tests / setup.sh
index b9475a3996d0054aeee0e217d786197a34917b73..651f9400d657a4510a71576336c7bfcacab95a32 100755 (executable)
@@ -22,7 +22,7 @@ mkrepo() {
        count=$2
        dir=$PWD
        test -d "$name" && return
-       printf "Creating testrepo %s\n" $name
+       printf "Creating testrepo %s\n" "$name"
        mkdir -p "$name"
        cd "$name"
        git init
@@ -41,7 +41,7 @@ mkrepo() {
                git commit -m "add a+b"
                git branch "1+2"
        fi
-       cd $dir
+       cd "$dir"
 }
 
 setup_repos()