Code correction

This commit is contained in:
Vlad 2020-09-14 22:19:01 +03:00
parent 80cc86b4f8
commit 2f65d801ec
1 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,11 @@
# source: https://github.com/iKenndac/verify-string-files
readonly SOURCES_DIR=${1:-${PROJECT_DIR}} # first argument or PROJECT_DIR
readonly LOCALIZATION_PATH="${PRODUCT_NAME}/Resources/Localization/Base.lproj/Localizable.strings"
readonly CHECK_SCRIPT="${SOURCES_DIR}/build-scripts/xcode/build_phases/common/localization_check"
if [ "${CONFIGURATION}" = "DEBUG" ]; then
${SOURCES_DIR}/build-scripts/xcode/build_phases/common/localization_check -master ${SOURCES_DIR}/Resources/Localization/Base.lproj/Localizable.strings -warning-level warning
${SOURCES_DIR} -master ${LOCALIZATION_PATH} -warning-level warning
else
${SOURCES_DIR}/build-scripts/xcode/build_phases/common/localization_check -master ${SOURCES_DIR}/Resources/Localization/Base.lproj/Localizable.strings
${CHECK_SCRIPT} -master ${LOCALIZATION_PATH}
fi