File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ if command -v jq 2>&1 >/dev/null; then
2424 done
2525else
2626 echo ' Error: Could not find ' jq' command. Is jq installed? Try running "brew install jq" or "port install jq" and rerunning this script.'
27- exit 0
27+ exit 1
2828fi
2929
3030# Download and install the Vulkan SDK.
3131curl -L " https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
3232unzip /tmp/vulkan-sdk.zip -d /tmp
3333
34- if [ -d " /tmp/InstallVulkan -$new_ver_full .app" ]; then
35- /tmp/InstallVulkan- $new_ver_full .app/Contents/MacOS/InstallVulkan- $new_ver_full --accept-licenses --default-answer --confirm-command install
36- rm -rf /tmp/InstallVulkan -$new_ver_full .app
37- elif [ -d " /tmp/InstallVulkan.app " ] ; then
38- /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --accept-licenses --default-answer --confirm-command install
39- rm -rf /tmp/InstallVulkan.app
34+ if [ -d " /tmp/vulkansdk-macOS -$new_ver_full .app" ]; then
35+ /tmp/vulkansdk-macOS- $new_ver_full .app/Contents/MacOS/vulkansdk-macOS- $new_ver_full --accept-licenses --default-answer --confirm-command install
36+ rm -rf /tmp/vulkansdk-macOS -$new_ver_full .app
37+ else
38+ echo " Couldn't install the Vulkan SDK, the unzipped contents may no longer match what this script expects. "
39+ exit 1
4040fi
4141
4242rm -f /tmp/vulkan-sdk.zip
You can’t perform that action at this time.
0 commit comments