modified: install

This commit is contained in:
ppierson 2013-08-16 13:19:40 -04:00
parent bdf363183c
commit 7c814672a2
1 changed files with 5 additions and 11 deletions

16
install
View File

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