diff --git a/src/dragon/shscripts/prerun_checks b/src/dragon/shscripts/prerun_checks index 2d068d95d..7a0dfc230 100644 --- a/src/dragon/shscripts/prerun_checks +++ b/src/dragon/shscripts/prerun_checks @@ -40,8 +40,10 @@ if [[ $PLATFORM == Darwin ]]; then # need ninja built specifically for iOS if python3 -c "import ninja" &> /dev/null; then python3 -m pip uninstall -y ninja - sudo apt update --allow-insecure-repositories - sudo apt install -y ninja + if ! dpkg -l ninja &> /dev/null; then + sudo apt update --allow-insecure-repositories + sudo apt install -y ninja + fi fi if ! [[ -x $(command -v clang) ]]; then