[gjs] build: Use string comparison for bash variable
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] build: Use string comparison for bash variable
- Date: Wed, 15 Feb 2017 03:52:44 +0000 (UTC)
commit 0c31433cd243c6f5ad3d1ed1612dd4c2b30071ad
Author: Claudio André <claudioandre br gmail com>
Date: Tue Feb 14 02:08:00 2017 -0800
build: Use string comparison for bash variable
Bash "Compilation" failing because the variable is not set
https://bugzilla.gnome.org/show_bug.cgi?id=776549
installed-tests/scripts/testCommandLine.sh | 2 +-
installed-tests/scripts/testWarnings.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh
index c9299ab..95c5535 100755
--- a/installed-tests/scripts/testCommandLine.sh
+++ b/installed-tests/scripts/testCommandLine.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-if test $GJS_USE_UNINSTALLED_FILES -eq 1; then
+if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
gjs="$TOP_BUILDDIR"/gjs-console
else
gjs=gjs-console
diff --git a/installed-tests/scripts/testWarnings.sh b/installed-tests/scripts/testWarnings.sh
index 1cb1dc3..6ed2dbe 100755
--- a/installed-tests/scripts/testWarnings.sh
+++ b/installed-tests/scripts/testWarnings.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-if test $GJS_USE_UNINSTALLED_FILES -eq 1; then
+if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then
gjs="$TOP_BUILDDIR"/gjs-console
else
gjs=gjs-console
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]