From 013abb9f4dd21ed5f03ab95660c3c7877c651860 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Sun, 5 Sep 2021 16:40:51 +0300 Subject: [PATCH] update @ Sun 5 Sep 16:40:51 EEST 2021 --- content/js/shell/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/js/shell/index.js b/content/js/shell/index.js index 71e23c8..7393351 100644 --- a/content/js/shell/index.js +++ b/content/js/shell/index.js @@ -16,7 +16,7 @@ function main() { if (commands[command]) { - if (commands[command]['root_only'] && !root) { + if (commands[command.toLowerCase()]['root_only'] && !root) { cmd_output.innerHTML = `'${command.toLowerCase()}' can only be ran as root. see help su` } else { cmd_output.innerHTML = commands[command.toLowerCase()]['func'](argv);