mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Modified the installer.
This commit is contained in:
parent
39b1cf391f
commit
0f2494726f
1 changed files with 1 additions and 3 deletions
4
install
4
install
|
@ -5,9 +5,7 @@ import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shutil.copy('./cheat', '/usr/local/bin/')
|
shutil.copy('./cheat', '/usr/local/bin/')
|
||||||
shutil.copy('./.cheat/', expanduser('~'))
|
shutil.copytree('./.cheat/', expanduser('~'))
|
||||||
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)
|
||||||
|
|
||||||
# don't forget to chown back to the normal user
|
|
||||||
|
|
Loading…
Reference in a new issue