From: Joerg Sonnenberger Date: Sat, 12 Apr 2014 21:13:41 +0000 (+0000) Subject: Fix test syntax to work with non-bash /bin/sh. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=df40801dff8bd5e6706fb47afab60e5442a7e518;p=oota-llvm.git Fix test syntax to work with non-bash /bin/sh. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206119 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/utils/check-coverage b/utils/lit/utils/check-coverage index bb3d17e7579..128e827f22d 100755 --- a/utils/lit/utils/check-coverage +++ b/utils/lit/utils/check-coverage @@ -9,13 +9,13 @@ if [ ! -f setup.py ] || [ ! -d lit ]; then fi # Parse command line arguments. -if [ "$1" == "--generate-html" ]; then +if [ "$1" = "--generate-html" ]; then GENERATE_HTML=1 shift fi # If invoked with no arguments, run all the tests. -if [ $# == "0" ]; then +if [ $# = "0" ]; then set -- "tests" fi diff --git a/utils/lit/utils/check-sdist b/utils/lit/utils/check-sdist index 743a971fbeb..f03266a1688 100755 --- a/utils/lit/utils/check-sdist +++ b/utils/lit/utils/check-sdist @@ -1,6 +1,6 @@ #!/bin/sh -if [ $# == 1 ]; then +if [ $# = 1 ]; then cd $1 fi