diff --git a/cli/templatepush.go b/cli/templatepush.go index f5ff1dcb3c..22a77791c5 100644 --- a/cli/templatepush.go +++ b/cli/templatepush.go @@ -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) {