mirror of
https://github.com/cheat/cheat.git
synced 2025-04-09 03:04:03 +02:00
Modified the installer.
This commit is contained in:
parent
0f2494726f
commit
431cde776c
2
install
2
install
@ -5,7 +5,7 @@ import sys
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
shutil.copy('./cheat', '/usr/local/bin/')
|
shutil.copy('./cheat', '/usr/local/bin/')
|
||||||
shutil.copytree('./.cheat/', expanduser('~'))
|
shutil.copytree('./.cheat', expanduser('~') + '/.cheat')
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
print >> sys.stderr, "This installer must be run as root."
|
print >> sys.stderr, "This installer must be run as root."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user