Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fee7018

Browse files
authored
Merge pull request #46 from pkgxdev/fixes/44
Fixes/44
2 parents 24eec91 + 9df6643 commit fee7018

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ if (parsedArgs.help) {
4343
} else {
4444
const subcommand = parsedArgs._[0];
4545
const dryrun = parsedArgs["dry-run"] as boolean;
46-
const quiet = parsedArgs["quiet"] != undefined;
46+
const quiet = Array.isArray(parsedArgs["quiet"])
47+
? !!parsedArgs["quiet"].length
48+
: parsedArgs["quiet"];
4749

4850
switch (subcommand) {
4951
case "integrate":

src/dump.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default async function (
6464
console.log(`
6565
eval "_pkgx_dev_try_bye() {
6666
suffix=\\"\\\${PWD#\\"${cwd}\\"}\\"
67-
[ \\"\\$PWD\\" = \\"${cwd}$suffix\\" ] && return 1
67+
[ \\"\\$PWD\\" = \\"${cwd}\\$suffix\\" ] && return 1
6868
echo -e \\"\\033[31m${bye_bye_msg}\\033[0m\\" >&2
6969
${undo.trim()}
7070
unset -f _pkgx_dev_try_bye

0 commit comments

Comments
 (0)