Skip to content

Commit 371a2e1

Browse files
fix: check correct default during template push from stdin (coder#15293)
I used the wrong default in coder#14643 - not sure how or why I didn't catch that..
1 parent 144d3f3 commit 371a2e1

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)