mirror of
https://github.com/cheat/cheat.git
synced 2024-11-23 14:31:36 +01:00
update cheats script
This commit is contained in:
parent
15fd673a51
commit
38d55ba559
12
update
Executable file
12
update
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
from os.path import expanduser
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
try:
|
||||
shutil.rmtree(expanduser('~') + '/.cheat')
|
||||
shutil.copytree('./.cheat', expanduser('~') + '/.cheat')
|
||||
print "cheats have been updated successfully."
|
||||
except IOError as e:
|
||||
print >> sys.stderr, "This updater must be run as root."
|
||||
sys.exit(1)
|
Loading…
Reference in New Issue
Block a user