Skip to content

Commit 3073171

Browse files
authored
Merge pull request #264 from epaulson10/fix-schema-stdin
Fix bug when writing schema supplied via stdin
2 parents bd74043 + 2c2bd5c commit 3073171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func schemaCopyCmdFunc(cmd *cobra.Command, args []string) error {
117117
}
118118

119119
func schemaWriteCmdFunc(cmd *cobra.Command, args []string) error {
120-
if len(args) == 0 && term.IsTerminal(int(os.Stdout.Fd())) {
120+
if len(args) == 0 && term.IsTerminal(int(os.Stdin.Fd())) {
121121
return fmt.Errorf("must provide file path or contents via stdin")
122122
}
123123

0 commit comments

Comments
 (0)