mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 10:45:05 +01:00
modified: install
This commit is contained in:
parent
bdf363183c
commit
7c814672a2
16
install
16
install
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user