Fix test syntax to work with non-bash /bin/sh.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 12 Apr 2014 21:13:41 +0000 (21:13 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 12 Apr 2014 21:13:41 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206119 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/utils/check-coverage
utils/lit/utils/check-sdist

index bb3d17e7579455e4b3c48a17f42a673e59789e67..128e827f22dcbb0ff3cb12349f53b7e9dcc973f8 100755 (executable)
@@ -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
 
index 743a971fbeb9ea38a041068b51e9c294ac9a8cb9..f03266a16888949a3c6b6243c7d245802589a805 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ $# == 1 ]; then
+if [ $# = 1 ]; then
     cd $1
 fi