Skip to content

Commit 5ad0ab5

Browse files
committed
fix: check correct default during template push from stdin
1 parent 2573838 commit 5ad0ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/templatepush.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (pf *templateUploadFlags) stdin(inv *serpent.Invocation) (out bool) {
282282
}
283283
}()
284284
// We let the directory override our isTTY check
285-
return pf.directory == "-" || (!isTTYIn(inv) && pf.directory == "")
285+
return pf.directory == "-" || (!isTTYIn(inv) && pf.directory == ".")
286286
}
287287

288288
func (pf *templateUploadFlags) upload(inv *serpent.Invocation, client *codersdk.Client) (*codersdk.UploadResponse, error) {

0 commit comments

Comments
 (0)