repo/spkg/PACKAGE

23 lines
503 B
Text
Raw Normal View History

2021-07-02 03:59:14 +03:00
#!/bin/sh
2021-07-02 04:26:08 +03:00
pkg_ver="21.07.02.1a"
2021-07-02 03:59:14 +03:00
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!"
2021-07-02 04:26:08 +03:00
else
exit 2
2021-07-02 03:59:14 +03:00
fi
}