Add php installation check

This commit is contained in:
Aleksandr Shushkov 2021-12-06 16:13:46 +03:00
parent 5f009524a3
commit 6b21a9845a
1 changed files with 7 additions and 1 deletions

View File

@ -35,4 +35,10 @@ if ! [ -e "${STRINGS_FOLDER}" ]; then
exit 1
fi
php ${SCRIPT_DIR}/../aux_scripts/import_strings.php ${LOCALIZATION_PATH} ${STRINGS_FOLDER} ${BUNDLE}
if which php >/dev/null; then
php ${SCRIPT_DIR}/../aux_scripts/import_strings.php ${LOCALIZATION_PATH} ${STRINGS_FOLDER} ${BUNDLE}
else
echo "warning: php not installed, install using 'brew install php'"
exit ${EXIT_FAILURE}
fi