We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e828772 commit 2acbdfdCopy full SHA for 2acbdfd
share/github-backup-utils/ghe-ssh
@@ -51,7 +51,7 @@ opts="-l $user $opts"
51
52
# Bail out with error if the simple command form is used with complex commands.
53
# Complex
54
-if echo "$*" | grep -q "[|;]" || [ $(echo "$*" | wc -l) -gt 1 ]; then
+if echo "$*" | grep "[|;]" >/dev/null || [ $(echo "$*" | wc -l) -gt 1 ]; then
55
echo "fatal: ghe-ssh: Attempt to invoke complex command with simple command form." 1>&2
56
echo "See ghe-ssh --help for more on correcting." 1>&2
57
exit 1
0 commit comments