Skip to content

Commit 524d724

Browse files
committed
Fixes #37
1 parent a310403 commit 524d724

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const parsedArgs = parseArgs(Deno.args, {
2121
q: "quiet",
2222
},
2323
collect: ["quiet"],
24-
boolean: ["help", "version", "shellcode"],
24+
boolean: ["help", "version", "shellcode", "quiet"],
2525
default: {
2626
"dry-run": false,
2727
},

src/shellcode().ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export default function shellcode() {
1313
_pkgx_chpwd_hook() {
1414
if ! type _pkgx_dev_try_bye >/dev/null 2>&1 || _pkgx_dev_try_bye; then
1515
dir="$PWD"
16-
while [ "$dir" != "/" ]; do
16+
while [ "$dir" != / -a "$dir" != . ]; do
1717
if [ -f "${datadir()}/$dir/dev.pkgx.activated" ]; then
18-
eval "$(${dev_cmd})"
18+
eval "$(${dev_cmd})" "$dir"
1919
break
2020
fi
2121
dir="$(dirname "$dir")"

0 commit comments

Comments
 (0)