File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 86
86
return errors .New ("no input provided" )
87
87
}
88
88
89
- publishEnv , publishEnvSet := os .LookupEnv ("VHS_PUBLISH" )
90
- if ! publishEnvSet && ! publishFlag {
91
- log .Println (FaintStyle .Render ("Host your GIF on vhs.charm.sh: vhs publish <file>.gif" ))
92
- }
93
-
94
89
var publishFile string
95
90
out := cmd .OutOrStdout ()
96
91
if quietFlag {
@@ -116,6 +111,11 @@ var (
116
111
publishFile = v .Options .Video .Output .GIF
117
112
})
118
113
114
+ publishEnv , publishEnvSet := os .LookupEnv ("VHS_PUBLISH" )
115
+ if ! publishEnvSet && ! publishFlag && len (errs ) == 0 {
116
+ log .Println (FaintStyle .Render ("Host your GIF on vhs.charm.sh: vhs publish <file>.gif" ))
117
+ }
118
+
119
119
if len (errs ) > 0 {
120
120
printErrors (os .Stderr , string (input ), errs )
121
121
return errors .New ("recording failed" )
You can’t perform that action at this time.
0 commit comments