Skip to content

Commit f5cfb38

Browse files
terrorobesnh
authored andcommitted
Tighten ssh-keygen feature test
1 parent 5200c89 commit f5cfb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-detect-leaked-ssh-keys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [ -n "$ppid_script" ]; then
4040
fi
4141

4242
sshkeygen_multiple_hash_formats=false
43-
if (ssh-keygen --a-dedicated-help-flag-would-be-great 2>&1 | grep 'ssh-keygen -l ' | grep -q -- '-E'); then
43+
if (ssh-keygen -E 2>&1 | head -1 | grep -q 'option requires an argument'); then
4444
sshkeygen_multiple_hash_formats=true
4545
fi
4646

0 commit comments

Comments
 (0)