mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
fix: check correct default during template push from stdin (#15293)
I used the wrong default in #14643 - not sure how or why I didn't catch that..
This commit is contained in:
@ -282,7 +282,7 @@ func (pf *templateUploadFlags) stdin(inv *serpent.Invocation) (out bool) {
|
||||
}
|
||||
}()
|
||||
// We let the directory override our isTTY check
|
||||
return pf.directory == "-" || (!isTTYIn(inv) && pf.directory == "")
|
||||
return pf.directory == "-" || (!isTTYIn(inv) && pf.directory == ".")
|
||||
}
|
||||
|
||||
func (pf *templateUploadFlags) upload(inv *serpent.Invocation, client *codersdk.Client) (*codersdk.UploadResponse, error) {
|
||||
|
Reference in New Issue
Block a user