From 6b21a9845a411d428101b32bb5d3698997608a97 Mon Sep 17 00:00:00 2001 From: Aleksandr Shushkov Date: Mon, 6 Dec 2021 16:13:46 +0300 Subject: [PATCH] Add php installation check --- xcode/build_phases/localization.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xcode/build_phases/localization.sh b/xcode/build_phases/localization.sh index e277f58..7d6b3b2 100644 --- a/xcode/build_phases/localization.sh +++ b/xcode/build_phases/localization.sh @@ -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 \ No newline at end of file