mirror of
https://github.com/cheat/cheat.git
synced 2025-09-06 03:52:55 +02:00
Attempting to cheatsheets out of application logic.
This commit is contained in:
3
install
3
install
@ -1,10 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
from os.path import expanduser
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
try:
|
||||
shutil.copy('./cheat', '/usr/local/bin/')
|
||||
# shutil.move('./.cheat', '~')
|
||||
shutil.copy('./.cheat', expanduser('~'))
|
||||
except IOError as e:
|
||||
print >> sys.stderr, "This installer must be run as root."
|
||||
sys.exit(1)
|
||||
|
Reference in New Issue
Block a user