Fix localization update script

This commit is contained in:
woxtu 2024-03-07 01:12:34 +09:00 committed by Nathan Mattes
parent 6da37e2156
commit f911aa9432
1 changed files with 5 additions and 7 deletions

View File

@ -2,8 +2,7 @@
set -ev set -ev
SRCROOT=`pwd` SRCROOT=$(pwd)
PODS_ROOT='Pods'
echo ${SRCROOT} echo ${SRCROOT}
@ -31,11 +30,10 @@ cp -R ${SRCROOT}/Localization/StringsConvertor/Intents/output/ ${SRCROOT}/Mastod
# Task 4 swiftgen # Task 4 swiftgen
cd ${SRCROOT} cd ${SRCROOT}
echo "${PODS_ROOT}/SwiftGen/bin/swiftgen" if which swiftgen >/dev/null; then
if [[ -f "${PODS_ROOT}/SwiftGen/bin/swiftgen" ]] then swiftgen
"${PODS_ROOT}/SwiftGen/bin/swiftgen"
else else
echo "Run 'bundle exec pod install' or update your CocoaPods installation." echo "Run 'brew install swiftgen'."
fi fi
# Task 5 clean temp file # Task 5 clean temp file