Code: Select all
#!/bin/bash
if [[ ! $(sudo echo 0) ]]; then
exit 1
fi
# Directory names subject to change
echo Deleting Python files...
rm ~/.local/bin/*
rm -r ~/.local/lib/python3.10
rm -r /usr/local/lib/pkgconfig
rm -r /usr/local/lib/python3.10
rm /usr/local/lib/libpython3.10.a
rm cd /usr/local/bin/*
rm /usr/local/man
rm -r /usr/local/share/man
How can I get the script to remove those folders? The folders and files are removed just fine if I run directly via the terminal. What gives? Thanks.