#!/bin/zsh cd -- "${0:A:h}" || exit 1 if /usr/bin/make check; then /usr/bin/open -a mGBA "$PWD/game.gba" else printf '\nBuild failed. Copy the error above so we can fix it.\n' read -r '?Press Return to close.' exit 1 fi