diff --git a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Verify JumpCloud Service Account.md b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Verify JumpCloud Service Account.md index 04eb4c253..e0aef7cfc 100644 --- a/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Verify JumpCloud Service Account.md +++ b/PowerShell/JumpCloud Commands Gallery/Mac Commands/Mac - Verify JumpCloud Service Account.md @@ -9,14 +9,13 @@ mac #### Command ``` -#!/bin/bash +#!/bin/zsh +autoload is-at-least +macOSVer=$(sw_vers -productVersion) -MacOSMajorVersion=$(sw_vers -productVersion | cut -d '.' -f 1) -MacOSMinorVersion=$(sw_vers -productVersion | cut -d '.' -f 2) -MacOSPatchVersion=$(sw_vers -productVersion | cut -d '.' -f 3) - -if [[ $MacOSMajorVersion -eq 10 && $MacOSMinorVersion -lt 13 ]]; then - echo "Error: System must be running 10.13+ to install Service Account." +is-at-least "10.13" $macOSVer +if [[ ! $? == "0" ]]; then + echo "Error: System must be running 10.13+ to install Service Account." exit 2 fi