squidpm

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

commit 1f7f2552dadd1b711644a48c06cd26ecbc27172c
parent 23663a7586ea4e5b8668d48a10cac0ee1b12b425
Author: Josh Moore <jxm5210@rit.edu>
Date:   Tue, 14 Jan 2020 16:58:40 -0500

Add special package: all

Diffstat:
Msquidpm.sh | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/squidpm.sh b/squidpm.sh @@ -69,7 +69,7 @@ if [ $1 == "install" ]; then /bin/sh $SPMDIR/packages/$2 install elif [ $1 == "uninstall" ]; then # verify that the package is installed - if [ ! -d $SPMDIR/repos/$2 ]; then + if [[ (! -d $SPMDIR/repos/$2 && $2 != "all") ]]; then echo "Package '$2' is not installed." exit fi @@ -78,16 +78,12 @@ elif [ $1 == "uninstall" ]; then /bin/sh $SPMDIR/packages/$2 uninstall elif [ $1 == "update" ]; then # verify that the package is installed - if [ ! -d $SPMDIR/repos/$2 ]; then + if [[ (! -d $SPMDIR/repos/$2 && $2 != "all") ]]; then echo "Package '$2' is not installed." exit fi # if so, update the package - # check whether the package needs to be updated - cd $SPMDIR/repos/$2 - - # remote and local are different, update the packages /bin/sh $SPMDIR/packages/$2 update else echo "Invalid operation '$1'."