mirror of
https://github.com/cheat/cheat.git
synced 2024-11-18 09:50:39 +01:00
13 lines
319 B
Python
Executable file
13 lines
319 B
Python
Executable file
#!/usr/bin/env python
|
|
from os.path import expanduser
|
|
import shutil
|
|
import sys
|
|
|
|
try:
|
|
shutil.copy('./cheat', '/usr/local/bin/')
|
|
shutil.copy('./.cheat/', expanduser('~'))
|
|
except IOError as e:
|
|
print >> sys.stderr, "This installer must be run as root."
|
|
sys.exit(1)
|
|
|
|
# don't forget to chown back to the normal user
|