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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy