diff --git a/data/scripts/programs/Cd.js b/data/scripts/programs/Cd.js index a6f99d3..2b1ea1d 100644 --- a/data/scripts/programs/Cd.js +++ b/data/scripts/programs/Cd.js @@ -16,6 +16,7 @@ Cd.prototype.main = function(args) { if (result.error) { this.output("\033[31m" + args[0] + ": " + result.error + "\033[0m\n"); this.exit(1); + return; } shell.directory = result.path;