Skip to content

Commit 2acbdfd

Browse files
committed
Flip back away from grep -q
See #86. Think this was just stomped from an earlier version.
1 parent e828772 commit 2acbdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ opts="-l $user $opts"
5151

5252
# Bail out with error if the simple command form is used with complex commands.
5353
# Complex
54-
if echo "$*" | grep -q "[|;]" || [ $(echo "$*" | wc -l) -gt 1 ]; then
54+
if echo "$*" | grep "[|;]" >/dev/null || [ $(echo "$*" | wc -l) -gt 1 ]; then
5555
echo "fatal: ghe-ssh: Attempt to invoke complex command with simple command form." 1>&2
5656
echo "See ghe-ssh --help for more on correcting." 1>&2
5757
exit 1

0 commit comments

Comments
 (0)