update @ Sun 5 Sep 16:40:51 EEST 2021

This commit is contained in:
Ari Archer 2021-09-05 16:40:51 +03:00
parent c651e1e260
commit 013abb9f4d

View file

@ -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 <i>only</i> be ran as <b>root</b>. see <b>help su</b>`
} else {
cmd_output.innerHTML = commands[command.toLowerCase()]['func'](argv);