[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master cc9d4db4 1/2: Handle shellcheck-0.9 warnings
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master cc9d4db4 1/2: Handle shellcheck-0.9 warnings |
Date: |
Tue, 10 Jan 2023 17:41:04 -0500 (EST) |
branch: master
commit cc9d4db445ae9a24de92f72e41aee757120ad3d0
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Handle shellcheck-0.9 warnings
See:
https://lists.nongnu.org/archive/html/lmi/2023-01/msg00000.html
---
gwc/allow_perf.sh | 5 +++--
install_xml_libraries.sh | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/gwc/allow_perf.sh b/gwc/allow_perf.sh
index 38bc5eb6..e03b7dea 100755
--- a/gwc/allow_perf.sh
+++ b/gwc/allow_perf.sh
@@ -24,8 +24,9 @@
# The copyright notice above is pro forma only. This is all based on:
# https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html
-# This may become useful someday, but for now...
-exit 9
+# This script may become useful someday, but don't run it for now.
+# 'shellcheck' complained of a simple 'exit' here, so...
+printf 'DO NOT RUN THIS SCRIPT--PRESS ^C NOW\n'; sleep 60;
# See:
# https://lists.nongnu.org/archive/html/lmi/2020-09/msg00073.html
diff --git a/install_xml_libraries.sh b/install_xml_libraries.sh
index 1bc7d01c..b254594a 100755
--- a/install_xml_libraries.sh
+++ b/install_xml_libraries.sh
@@ -257,7 +257,7 @@ for lib in libxml2 libxslt; do
echo "-------------------------------------------------------"
cat config.log
echo "-------------------------------------------------------"
- exit $err
+ exit "$err"
fi
$MAKE install
printf 'Built %s with %s for %s.\n' "$lib" "$LMI_COMPILER" "$LMI_TRIPLET"
@@ -313,7 +313,7 @@ for lib in xmlwrapp; do
echo "-------------------------------------------------------"
cat config.log
echo "-------------------------------------------------------"
- exit $err
+ exit "$err"
fi
$MAKE install
printf 'Built %s with %s for %s.\n' "$lib" "$LMI_COMPILER" "$LMI_TRIPLET"