repo/spkg/PACKAGE

21 lines
491 B
Text
Raw Normal View History

2021-07-02 03:59:14 +03:00
#!/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
}