From: Karl Hasselström Date: Sun, 20 Apr 2008 13:17:42 +0000 (+0200) Subject: Get rid of backticks in test-lib.sh X-Git-Tag: v0.15-rc1~242 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/3fa9eb264eb3b6800c15678ce6ed33224dc057f0 Get rid of backticks in test-lib.sh The $(...) notation is just plain nicer. Signed-off-by: Karl Hasselström --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 87c143a..95e322e 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -307,13 +307,13 @@ test_cmp() { test_create_repo () { test "$#" = 1 || error "bug in the test script: not 1 parameter to test-create-repo" - owd=`pwd` + owd=$(pwd) repo="$1" mkdir "$repo" cd "$repo" || error "Cannot setup test environment" git init >/dev/null 2>&1 || error "cannot run git init" echo "empty start" | \ - git commit-tree `git write-tree` >.git/refs/heads/master 2>&4 || \ + git commit-tree $(git write-tree) >.git/refs/heads/master 2>&4 || \ error "cannot run git commit" mv .git/hooks .git/hooks-disabled cd "$owd"