Skip to content

Commit

Permalink
fix: fix cd method
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 13, 2021
1 parent dd95c08 commit bf39b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/cd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function cd(dir: string) {
console.log($.brightBlue("$ %s"), `cd ${dir}`);
}
try {
Deno.chdir(new URL(dir, $.mainModule).pathname);
Deno.chdir(dir);
} catch (err) {
if (err instanceof Deno.errors.NotFound) {
const stack: string = (new Error().stack!.split("at ")[2]).trim();
Expand Down

0 comments on commit bf39b0a

Please sign in to comment.