Skip to content

Commit f0f2975

Browse files
authored
Merge pull request #239 from cnblogs/fix-workspace-path-check
fix: workspace path check in post-pull-all
2 parents 43c585e + 6bb10da commit f0f2975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/post-list/post-pull-all.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export async function postPullAll() {
7171
if (
7272
path === undefined ||
7373
!(await fsUtil.exists(path)) ||
74-
path.indexOf(WorkspaceCfg.getWorkspaceUri().path) < 0
74+
path.indexOf(WorkspaceCfg.getWorkspaceUri().fsPath) < 0
7575
) {
7676
const uri = buildLocalPostFileUri(post, false)
7777
const buf = Buffer.from(post.postBody)

0 commit comments

Comments
 (0)