repo/spkg/PACKAGE
2021-07-02 02:59:14 +02:00

20 lines
491 B
Bash

#!/bin/sh
pkg_ver="21.07.01.21.nr"
pkg_install(){
mkdir spkg
cd spkg
wget -O ./spkg https://git.hippoz.xyz/duck/spkg/spkg
rm /bin/spkg
install -Dm755 ./spkg /bin/spkg
}
pkg_uninstall(){
read -p "Are you sure you want to remove sPKG via wget (Duck Linux's PM). If yes, you are aware that Duck Linux will become Linux from Scratch, continue still?" -n 1 -r
echo ""
if [[ $confirmation =~ ^[Yy]$ ]]
then
rm /bin/spkg
rm /usr/bin/spkg
echo "sPKG via wget removed, g'luck!"
fi
}