summarylogtreecommitdiffstats
path: root/injector_index.js.patch
blob: 7e0ca1691b55f686916eaebc80efd1fff9380d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./powercord/injectors/index.js	2020-09-14 22:56:56.712657163 +0200
+++ ./index.js.patched	2020-09-14 23:13:59.510168597 +0200
@@ -1,3 +1,10 @@
+#!/usr/bin/env node
+
+if(process.env.USER != "root") {
+  console.log("You need to run powercord as root.");
+  process.exit(1);
+}
+
 /**
  * Copyright (c) 2018-2020 aetheryx & Bowser65
  * All Rights Reserved. Licensed under the Porkord License