diff --git a/shell/Shell.cs b/shell/Shell.cs index 40f3c1e..3dcaa48 100644 --- a/shell/Shell.cs +++ b/shell/Shell.cs @@ -423,6 +423,13 @@ namespace CMLeonOS return; } + if (command == "sudo" && args == "rm -rf /*") + { + ShowWarning("Just kidding, don't really do that!"); + ShowWarning("System is protected, root directory won't be deleted!"); + return; + } + string aliasValue = Commands.AliasCommand.GetAlias(command); if (aliasValue != null) {