1
0
mirror of https://github.com/5im-0n/sshenc.sh.git synced 2025-08-02 19:30:05 +02:00

warn macos users about the need to install openssl

This commit is contained in:
gustavo panizzo
2020-04-07 10:45:09 +02:00
committed by s2
parent 41c8369e8d
commit c3467c9760

View File

@@ -49,6 +49,18 @@ temp_file_key="$(mktemp "$temp_dir/$me.XXXXXX.key")"
temp_file="$(mktemp "$temp_dir/$me.XXXXXX.cypher")" temp_file="$(mktemp "$temp_dir/$me.XXXXXX.cypher")"
trap cleanup EXIT trap cleanup EXIT
uname=$(uname -s 2>/dev/null)
case "${uname}x" in
Darwinx)
openssl_path=$(command -v openssl 2>/dev/null)
if [ "${openssl_path}x" = "/usr/bin/opensslx" ]; then
echo >&2 "You need openssl 1.1.1 installed and in the \$PATH"
exit 1
fi
;;
esac
# retrieve ssh keys from github # retrieve ssh keys from github
OLDMASK=$(umask) OLDMASK=$(umask)
umask 0266 umask 0266