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:
12
sshenc.sh
12
sshenc.sh
@@ -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
|
||||||
|
Reference in New Issue
Block a user