#!/bin/bash # 2021-06 ad kerberos mojave problem, fix needed? # https://macadmins.slack.com/archives/CB0547P08 precheck="$(klist 2>&1 & sleep 2; pkill klist)" if [[ $precheck ]]; then echo "klist success" echo "All good. Patch not required" exit 0 else echo "klist fail" echo "Patch is required. Keep going..." fi