forgot about one line

This commit is contained in:
Ohio2 2021-06-29 00:25:00 +02:00
parent 33579be33b
commit fa9a7a1064

2
spkg
View file

@ -7,7 +7,7 @@ func()
source=git.hippoz.xyz/spkg/repo source=git.hippoz.xyz/spkg/repo
beta=false beta=false
case ${1} in case ${1} in
setup) mv ./deps/* /usr/bin/ && cp ./spkg /usr/bin/spkg && chmod +x /usr/bin/git && mkdir /etc/ && mv os-release /etc/ ;; setup) cp ./spkg /usr/bin/spkg && chmod +x /usr/bin/spkg && mkdir /etc/ && mv os-release /etc/ ;;
remove) pushd && for fname in $@ && cd /usr/src/${2} && make uninstall && popd ;; remove) pushd && for fname in $@ && cd /usr/src/${2} && make uninstall && popd ;;
install) case ${2} in install) case ${2} in
--root-dir=) pushd && for fname in $@ && mkdir ${4}/usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile ${4}/usr/src/${3}/Makefile && cd ${4}/usr/src/${3} && make prepare && make && make install && cat ${3} > ${4}/var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;; --root-dir=) pushd && for fname in $@ && mkdir ${4}/usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile ${4}/usr/src/${3}/Makefile && cd ${4}/usr/src/${3} && make prepare && make && make install && cat ${3} > ${4}/var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;;