Project

General

Profile

Bug #122 » uninstall.sh

David Griffith, 05/07/2012 08:37 PM

 
1
#!/bin/sh
2
# Generic user-friendly uninstall script for Python programs.
3
# Please share and enjoy.
4

    
5
myfile="files.txt"
6
if [ -f $myfile ]; then
7
  echo "Uninstalling..."
8
  for i in `cat $myfile`
9
  do
10
    rm -rf '$i';
11
  done
12
  echo "Done!"
13
else
14
  echo "$myfile not present.  Try installing again, then uninstalling."
15
fi
(4-4/4)