make script respect $TMPDIR
This commit is contained in:
parent
a1eaf76575
commit
331af7f488
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
tmpfile=$(mktemp /tmp/ssh-check-host-fingerprints.tmp.XXXXXX)
|
||||
tmpdir=${TMPDIR:-/tmp}
|
||||
tmpfile=$(mktemp "$tmpdir"/ssh-check-host-fingerprints.tmp.XXXXXX)
|
||||
ssh-keyscan -p "$2" "$1" 2>/dev/null > "$tmpfile"
|
||||
if [ -s "$tmpfile" ]; then
|
||||
fingerprints=$(ssh-keygen -lf "$tmpfile" 2>/dev/null | awk '{print $2}')
|
||||
|
Loading…
Reference in New Issue
Block a user