From 80730072fce177cd069f57d3760be3dea1714aca Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Mon, 28 Jun 2021 14:27:40 +0200 Subject: [PATCH] yet here we go --- spkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spkg b/spkg index caaf393..7c49de5 100755 --- a/spkg +++ b/spkg @@ -13,8 +13,8 @@ case ${1} in *) pushd && mkdir /usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile /usr/src/${3}/Makefile && cd /usr/src/${3} && make prepare && make && make install && cat ${3} > /var/cache/spkg.cache && ${3} --version > /var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;; esac ;; cache) case ${2} in - rm) rm -rf /usr/src/* ;; - clean) rm -rf /usr/src/${3} ;; + clean) rm -rf /usr/src/* ;; + rm) rm -rf /usr/src/${3} ;; save) case ${3} in to) cp /usr/src/ ${4} ;; *) cp /usr/src/ /etc/spkg/cache || mkdir /etc/spkg 2>/dev/null && mkdir /etc/spkg/cache 2>/dev/null && cp /usr/src/ /etc/spkg/cache ;; @@ -32,4 +32,5 @@ case ${1} in to update, just type in sudo spkg update. to setup (IMPORTANT!!!), just type in sudo spkg setup' ;; --version) echo 'beta 21.06.28.1a' ;; + --to-do) echo 'change tos to something else.' esac