[gjs: 9/12] build: Remove bash-ism
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 9/12] build: Remove bash-ism
- Date: Tue, 10 Aug 2021 04:08:01 +0000 (UTC)
commit 1ffa35e2ba546c351120c1782f85906ff62815f9
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Jul 31 21:26:33 2021 -0700
build: Remove bash-ism
Using == as an operator in [ is a bash-ism. For portability to /bin/sh,
use =.
tools/run_iwyu.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/run_iwyu.sh b/tools/run_iwyu.sh
index cae6fbeb..28f12f22 100755
--- a/tools/run_iwyu.sh
+++ b/tools/run_iwyu.sh
@@ -4,7 +4,7 @@
SRCDIR=$(pwd)
-if [ "$1" == '--help' -o "$1" == '-h' ]; then
+if [ "$1" = '--help' -o "$1" = '-h' ]; then
echo "usage: $0 [ COMMIT ]"
echo "Run include-what-you-use on the GJS codebase."
echo "If COMMIT is given, analyze only the files changed since that commit,"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]