Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
macos_compatability_check: add full binary paths
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed Nov 6, 2019
1 parent c79ebc2 commit 968c88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lockdown
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ function macos_compatability_check {
local os
local current_macos_version

os="$(uname -s)"
os="$(/usr/bin/uname -s)"

if [[ "${os}" != "Darwin" ]]; then
echo "[❌] Lockdown was built for macOS"
exit 1
fi

current_macos_version="$(sw_vers -productVersion | awk -F '.' '{print $1 "." $2}')";
current_macos_version="$(/usr/bin/sw_vers -productVersion | /usr/bin/awk -F '.' '{print $1 "." $2}')";

if [ "${current_macos_version}" != "${supported_macos_version}" ]; then
echo "[❌] Lockdown was built for macOS ${supported_macos_version}.x"
Expand Down

0 comments on commit 968c88b

Please sign in to comment.