Skip to content

Commit 0b79471

Browse files
author
Sarah Edwards
authored
Use --exit-status instead of -e in example
1 parent 77de8e9 commit 0b79471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/run/view/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
105105
$ gh run view --log --job 456789
106106
107107
# Exit non-zero if a run failed
108-
$ gh run view 0451 -e && echo "run pending or passed"
108+
$ gh run view 0451 --exit-status && echo "run pending or passed"
109109
`),
110110
RunE: func(cmd *cobra.Command, args []string) error {
111111
// support `-R, --repo` override

0 commit comments

Comments
 (0)