
startos=$( /usr/bin/find "/Applications" -iname "startosinstall" -type f )

[ "$mode" = "upgrade" ] && msgosupgtitle="Upgrading macOS" || msgosupgtitle="Erasing macOS to $downloados"

cat <<EOF > "$pbjson"
{
    "percentage": -1,
    "title": "$msgosupgtitle",
    "message": "Preparing to $mode ..",
    "icon": "$updateicon"