Files
ps4-fortniteserver/PS4Toolchain/extra/macos_pkg_files/pre_install_script.sh
T
2026-04-23 22:01:27 +02:00

19 lines
603 B
Bash

#! /bin/sh
# Trust me, you don't want to modify this. It won't work.
is_llvm_installed=false
if [ -L "/usr/local/opt/llvm" ]; then # Checks for a pure version of LLVM, not the Apple one
is_llvm_installed=true
fi
if [ "$is_llvm_installed" = false ] ; then
CONTINUE="$(osascript -e 'display dialog "LLVM cannot be found.\n\nPure LLVM is required to compile homebrews, the Apple version would not work.\n\nWould you like to continue with the installation?" with icon caution buttons {"No", "Yes"} default button "Yes"')"
if [ "$CONTINUE" = "button returned:No" ]; then
exit 1
fi
fi
exit 0