Skip to content

Commit ab94807

Browse files
committed
fix: folder existance check not working properly
1 parent 62623ca commit ab94807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/utils/shell.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import shell from 'shelljs';
22

33
export function exists(path: string): boolean {
4-
return shell.exec(`[ ! -d ${path} ] && exit 1`).code === 0;
4+
return shell.exec(`[ -d ${path} ] && exit 0 || exit 1`).code === 0;
55
}

0 commit comments

Comments
 (0)