diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-05 21:02:45 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-05 21:02:45 -0500 |
commit | ed77f4657d7575dc770fdc9e05db6908d46062fa (patch) | |
tree | fe704eb3789d0e816bee1562b1dc33414dfad371 | |
parent | eb687642db67caf1ae9658f3cc2ab31582f0e2a2 (diff) |
Have grep exit 0 without stdoutput when checking if a package is in packages.csv.
-rw-r--r-- | packageinstall.sh | 2 |
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 |