aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packageinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packageinstall.sh b/packageinstall.sh
index 48d93e4..78e2cdd 100644
--- a/packageinstall.sh
+++ b/packageinstall.sh
@@ -3,7 +3,7 @@
CHAPTER="$1"
PACKAGE="$2"
-if ! grep "^${PACKAGE}" packages.csv >/dev/null 2>&1; then
+if ! grep -q "^${PACKAGE}" packages.csv; then
printf "%b" " ${IRED}PACKAGE ${IYLW}${PACKAGE} ${IRED}DOES NOT EXIST!${RST}\n"
exit 1
fi