summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xxlate-test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlate-test.py b/xlate-test.py
index 37760e96..43c4be19 100755
--- a/xlate-test.py
+++ b/xlate-test.py
@@ -72,7 +72,9 @@ def load_test_files():
def main():
- if args.test:
+ if os.getuid() != 0:
+ print(red("Error: ") + "You need to be root to run this, sorry")
+ elif args.test:
if not args.test.endswith(".txlate"):
args.test += ".txlate"
try: