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);