mirror of
https://github.com/cheat/cheat.git
synced 2025-04-09 03:04:03 +02:00
modified: install
This commit is contained in:
parent
bdf363183c
commit
7c814672a2
16
install
16
install
@ -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)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user