modified: install

This commit is contained in:
ppierson 2013-08-16 13:19:40 -04:00
parent bdf363183c
commit 7c814672a2

16
install
View file

@ -1,12 +1,6 @@
#!/usr/bin/env python #!/bin/sh
from os.path import expanduser
import shutil
import sys
try: cp ./cheat /usr/local/bin
shutil.copy('./cheat', '/usr/local/bin/') cp -r ./.cheat ~/
shutil.copytree('./.cheat', expanduser('~') + '/.cheat')
print "cheat has been installed successfully." printf "Cheat has been intsalled sucessfully."
except IOError as e:
print >> sys.stderr, e
sys.exit(1)