From 38d55ba5597b39157e2277159b0d3b6126b8fc46 Mon Sep 17 00:00:00 2001 From: Scott Alexander-Bown Date: Mon, 12 Aug 2013 13:46:52 +0100 Subject: [PATCH] update cheats script --- update | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 update diff --git a/update b/update new file mode 100755 index 0000000..491b64c --- /dev/null +++ b/update @@ -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)