#!/bin/sh
os=$(sw_vers -productVersion)
dir=$(dirname "$0")
if [[ "${os}" == "13."* ]]; then
    exec "${dir}/PowerApp10"
elif [[ "${os}" == "12."* ]]; then
    exec "${dir}/PowerApp10"
elif [[ "${os}" == "11."* ]]; then
    exec "${dir}/PowerApp10"
elif [[ "${os}" == "10."* ]]; then
    exec "${dir}/PowerApp10"
elif [[ "${os}" == "9."* ]]; then
    exec "${dir}/PowerApp8"
elif [[ "${os}" == "8."* ]]; then
    exec "${dir}/PowerApp8"
elif [[ "${os}" == "7."* ]]; then
    exec "${dir}/PowerApp7"
else
    exec "${dir}/PowerApp3"
fi
