mirror of https://github.com/cheat/cheat.git
Modified the installer such that it now outputs text on successful installation.
This commit is contained in:
parent
b2fe140fdb
commit
15fd673a51
1
install
1
install
|
@ -6,6 +6,7 @@ import sys
|
||||||
try:
|
try:
|
||||||
shutil.copy('./cheat', '/usr/local/bin/')
|
shutil.copy('./cheat', '/usr/local/bin/')
|
||||||
shutil.copytree('./.cheat', expanduser('~') + '/.cheat')
|
shutil.copytree('./.cheat', expanduser('~') + '/.cheat')
|
||||||
|
print "cheat has been installed successfully."
|
||||||
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…
Reference in New Issue