Youtube-dl-wrapper/uninstall.sh

32 lines
724 B
Bash
Raw Normal View History

2023-01-07 20:47:56 +01:00
#!/bin/bash
2023-01-08 16:39:23 +01:00
# This file should be executable
2023-01-07 20:47:56 +01:00
# Remove YT-DL-W
echo "Removing youtube-dl-wrapper..."
rm -R ~/bin/YT-DL
# Remove youtube-dl
echo "Checking to see if we need to remove youtube-dl"
instytdl="$(cat ./dbytdl.txt)"
if [ "$instytdl" = 1 ];
then echo "Removing youtube-dl" && sudo rm /usr/local/bin/youtube-dl
else echo >/dev/null
fi
# Remove python symlink
echo "Checking to see if we need to remove python symlink"
pylnk=$(cat ./dbpyer.txt)
if [ "$pylnk" = 1 ];
then echo "Removing python sym link" && sudo rm /usr/bin/python
else echo >/dev/null
fi
2023-01-08 17:00:14 +01:00
# Remove menu entry...
rm "$HOME"/.local/share/applications/menu.desktop
2023-01-07 20:47:56 +01:00
echo "Uninstall finished!
Press 'Enter' to close this window..."
read -r