squidpm

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

commit e2b6093f8e1b504947904fb6a4a4b612f9fd3691
parent 521476df3fc4bd7b395376a08a6f1f35584bc1b9
Author: Josh Moore <jxm5210@g.rit.edu>
Date:   Thu, 16 Jan 2020 13:39:24 -0500

Merge pull request #15 from dargonforce/shell

Removed references to bash
Diffstat:
Mpackages/all | 2--
Mpackages/busybox | 2--
Mpackages/direwolf | 2--
Mpackages/dmenu | 2--
Mpackages/dwm | 2--
Mpackages/example | 2--
Mpackages/farbfeld | 2--
Mpackages/linux | 2--
Mpackages/neofetch | 2--
Mpackages/quark | 2--
Mpackages/sent | 2--
Mpackages/slock | 2--
Mpackages/squidpm | 2--
Mpackages/st | 2--
Msquidpm.sh | 14+++++++-------
15 files changed, 7 insertions(+), 35 deletions(-)

diff --git a/packages/all b/packages/all @@ -1,5 +1,3 @@ -#!/bin/bash - # This is a special package that performs the specified operation # on all available packages. diff --git a/packages/busybox b/packages/busybox @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://github.com/mirror/busybox.git diff --git a/packages/direwolf b/packages/direwolf @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://github.com/wb2osz/direwolf.git diff --git a/packages/dmenu b/packages/dmenu @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/dmenu diff --git a/packages/dwm b/packages/dwm @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/dwm diff --git a/packages/example b/packages/example @@ -1,5 +1,3 @@ -#!/bin/bash - # # This is an example package management script that could serve as a # "template" for how you could add some of your own packages to squidpm. diff --git a/packages/farbfeld b/packages/farbfeld @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/farbfeld diff --git a/packages/linux b/packages/linux @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://github.com/torvalds/linux.git diff --git a/packages/neofetch b/packages/neofetch @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://github.com/dylanaraps/neofetch diff --git a/packages/quark b/packages/quark @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/quark diff --git a/packages/sent b/packages/sent @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/sent diff --git a/packages/slock b/packages/slock @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/slock diff --git a/packages/squidpm b/packages/squidpm @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://github.com/joshiemoore/squidpm.git diff --git a/packages/st b/packages/st @@ -1,5 +1,3 @@ -#!/bin/bash - # set this to the public git url of the package GITURL=https://git.suckless.org/st diff --git a/squidpm.sh b/squidpm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # The Squid Package Manager # Copyright (C) 2020 Joshua Moore @@ -66,29 +66,29 @@ if [ $1 = "install" ]; then fi # if not, install the package - /bin/bash $SPMDIR/packages/$2 install + /bin/sh $SPMDIR/packages/$2 install elif [ $1 = "uninstall" ]; then # verify that the package is installed - if [[ ! -d $SPMDIR/repos/$2 && $2 != "all" ]]; then + if [ ! -d $SPMDIR/repos/$2 ] && [ $2 != "all" ]; then echo "Package '$2' is not installed." exit fi # if so, uninstall the package - /bin/bash $SPMDIR/packages/$2 uninstall + /bin/sh $SPMDIR/packages/$2 uninstall elif [ $1 = "update" ]; then # verify that the package is installed - if [[ ! -d $SPMDIR/repos/$2 && $2 != "all" ]]; then + if [ ! -d $SPMDIR/repos/$2 ] && [$2 != "all" ]; then echo "Package '$2' is not installed." exit fi # if so, update the package - /bin/bash $SPMDIR/packages/$2 update + /bin/sh $SPMDIR/packages/$2 update elif [ $1 = "check" ]; then # check whether the package is installed - if [[ -d $SPMDIR/repos/$2 ]]; then + if [ -d $SPMDIR/repos/$2 ]; then exit 1 else exit 0