mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
modified: install
This commit is contained in:
parent
bdf363183c
commit
7c814672a2
1 changed files with 5 additions and 11 deletions
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 a new issue