lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 0e30bf7 2/5: Inhibit 'shellcheck' for cygwin,


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0e30bf7 2/5: Inhibit 'shellcheck' for cygwin, which doesn't provide it
Date: Fri, 31 May 2019 19:23:49 -0400 (EDT)

branch: master
commit 0e30bf789558740645606a46e6e5237208259bd3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Inhibit 'shellcheck' for cygwin, which doesn't provide it
---
 check_script.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/check_script.sh b/check_script.sh
index ebfddb8..1bfe7fe 100755
--- a/check_script.sh
+++ b/check_script.sh
@@ -21,9 +21,16 @@
 # email: <address@hidden>
 # snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
 
+# Do nothing for cygwin, which has no 'shellcheck' package.
+
+lmi_build_type=$(/usr/share/libtool/build-aux/config.guess)
+case "$lmi_build_type" in
+  (*-*-cygwin*) exit 0 ;;
+esac
+
 # Skip:
 #  - empty argument: no script to check
-#  - git's default hooks: the maintainers don't use shellcheck
+#  - git's default hooks: the maintainers don't use 'shellcheck'
 #  - tabs/ scripts: they're extraordinary
 
 case "$1" in



reply via email to

[Prev in Thread] Current Thread [Next in Thread]