Skip to content

Commit d5bf3cb

Browse files
committed
update make-link
1 parent 38b8677 commit d5bf3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/make_dev_link.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ if (targetDir === '') {
9393
log('"targetDir" is empty, try to get SiYuan directory automatically....')
9494
let res = await getSiYuanDir();
9595

96-
if (res === null) {
96+
if (res === null || res === undefined || res.length === 0) {
9797
log('Failed! You can set the plugin directory in scripts/make_dev_link.js and try again');
9898
process.exit(1);
9999
}

0 commit comments

Comments
 (0)