aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-05 21:02:08 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-05 21:02:08 -0500
commiteb687642db67caf1ae9658f3cc2ab31582f0e2a2 (patch)
tree402d473a4795de083d29a87013c3851335532be9
parent7092d5d0f8467dc5736de1ef393740e822276718 (diff)
Have grep exit 0 without stdoutput when checking if a package is in packages.csv.
-rw-r--r--packageinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packageinstall.sh b/packageinstall.sh
index c9689a6..48d93e4 100644
--- a/packageinstall.sh
+++ b/packageinstall.sh
@@ -3,7 +3,7 @@
CHAPTER="$1"
PACKAGE="$2"
-if ! grep "^${PACKAGE}" packages.csv; then
+if ! grep "^${PACKAGE}" packages.csv >/dev/null 2>&1; then
printf "%b" " ${IRED}PACKAGE ${IYLW}${PACKAGE} ${IRED}DOES NOT EXIST!${RST}\n"
exit 1
fi