Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit988e21e

Browse files
committed
fixup! Handle single file sync
1 parent3e7c4da commit988e21e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎internal/cmd/sync.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ func makeRunSync(init *bool) func(cmd *cobra.Command, args []string) error {
7575
iferr!=nil {
7676
returnerr
7777
}
78-
if!info.IsDir() {
78+
ifinfo.Mode().IsRegular() {
7979
returnsync.SingleFile(ctx,local,remoteDir,env,client)
80+
}elseif!info.IsDir() {
81+
returnxerrors.Errorf("local path must lead to a regular file or directory: %w",err)
8082
}
8183

8284
absLocal,err:=filepath.Abs(local)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp