summarylogtreecommitdiffstats
path: root/injector_index.js.patch
diff options
context:
space:
mode:
Diffstat (limited to 'injector_index.js.patch')
-rw-r--r--injector_index.js.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/injector_index.js.patch b/injector_index.js.patch
new file mode 100644
index 000000000000..2ec78e0b08a4
--- /dev/null
+++ b/injector_index.js.patch
@@ -0,0 +1,12 @@
+--- /home/botond/Downloads/temp/powercord/injectors/index.js 2020-08-14 23:38:07.596542247 +0200
++++ ./index.js 2020-08-15 13:34:31.166710654 +0200
+@@ -1,3 +1,9 @@
++#!/usr/bin/env node
++
++if(process.env.USER != "root") {
++ console.log("You need to run powercord as root.");
++ process.exit(1);
++}
+ // Perform checks
+ require('./env_check')();
+