File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ if [ -n "$ppid_script" ]; then
4848fi
4949
5050sshkeygen_multiple_hash_formats=false
51- if (ssh-keygen -E 2>&1 | head -1 | grep -q ' option requires an argument ' ); then
51+ if (ssh-keygen --a-dedicated-help-flag-would-be-great 2>&1 | grep ' ssh-keygen -l ' | grep -q -- ' -E ' ); then
5252 sshkeygen_multiple_hash_formats=true
5353fi
5454
@@ -78,7 +78,11 @@ for tar_file in $ssh_tars; do
7878 if $( tar -tvf " $tar_file " $key & > /dev/null) ; then
7979 tar -C $TEMPDIR -xvf " $tar_file " $key & > /dev/null
8080 if $sshkeygen_multiple_hash_formats ; then
81+ <<< <<< < HEAD
8182 fingerprint=$( ssh-keygen -l -E md5 -f $TEMPDIR /$key | cut -d ' ' -f 2 | cut -f 2- -d ' :' )
83+ =======
84+ fingerprint=$( ssh-keygen -l -E md5 -f $TEMPDIR /$key | cut -d ' ' -f 2 | cut -f2- -d' :' )
85+ >>>>>>> a3fac8e... add support for macOS Sierra ssh-keygen
8286 else
8387 fingerprint=$( ssh-keygen -lf $TEMPDIR /$key | cut -d ' ' -f 2)
8488 fi
You can’t perform that action at this time.
0 commit comments