[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
- [lmi-commits] [lmi] master updated (b0a3562 -> 6198c3a), Greg Chicares, 2019/05/31
- [lmi-commits] [lmi] master a896830 4/5: Fix defect introduced 20190519T1745Z: incomplete export, Greg Chicares, 2019/05/31
- [lmi-commits] [lmi] master ab38ad6 1/5: Add a 'show_env' makefile target, Greg Chicares, 2019/05/31
- [lmi-commits] [lmi] master 0e30bf7 2/5: Inhibit 'shellcheck' for cygwin, which doesn't provide it,
Greg Chicares <=
- [lmi-commits] [lmi] master b44f960 3/5: Generally prefer printf to echo, Greg Chicares, 2019/05/31
- [lmi-commits] [lmi] master 6198c3a 5/5: Don't '. ./name_of_script_that_could_reside_elsewhere', Greg Chicares, 2019/05/31