We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62623ca commit ab94807Copy full SHA for ab94807
cli/src/utils/shell.ts
@@ -1,5 +1,5 @@
1
import shell from 'shelljs';
2
3
export function exists(path: string): boolean {
4
- return shell.exec(`[ ! -d ${path} ] && exit 1`).code === 0;
+ return shell.exec(`[ -d ${path} ] && exit 0 || exit 1`).code === 0;
5
}
0 commit comments