squidpm

the squid package manager
git clone git://squid-tech.com/squidpm.git
Log | Files | Refs | README | LICENSE

commit 30756a6abe1e01835e2348becc52b6410bd30435
parent 7dd0c917864fab9f406895a2757f60dd907e207a
Author: Josh Moore <jxm5210@rit.edu>
Date:   Tue, 14 Jan 2020 17:25:22 -0500

Add 'check' command

Diffstat:
Msquidpm.sh | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/squidpm.sh b/squidpm.sh @@ -85,6 +85,13 @@ elif [ $1 == "update" ]; then # if so, update the package /bin/sh $SPMDIR/packages/$2 update +elif [ $1 == "check" ]; then + # check whether the package is installed + if [[ -d $SPMDIR/repos/$2 ]]; then + exit 1 + else + exit 0 + fi else echo "Invalid operation '$1'." exit