Use mktemp instead of tempfile for OSX compatibility

This commit is contained in:
Knut Ahlers 2017-01-11 17:50:13 +01:00
parent 8b62f61b0b
commit 8c3f1efed4
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -29,7 +29,8 @@ if [ $# -eq 0 ]; then
fi
# Create a helper script to send STDIN data to ssh-add
HELPER=$(tempfile -m 0700)
HELPER=$(mktemp)
chmod 0700 ${HELPER}
trap "rm ${HELPER}" EXIT
cat -s <<EOF > ${HELPER}