Skip to content

Commit f911aa9

Browse files
woxtuzeitschlag
authored andcommitted
Fix localization update script
1 parent 6da37e2 commit f911aa9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

update_localization.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
set -ev
44

5-
SRCROOT=`pwd`
6-
PODS_ROOT='Pods'
5+
SRCROOT=$(pwd)
76

87
echo ${SRCROOT}
98

109
# Task 1
1110
# here we use the template source as input to
12-
# generate strings so we could use new strings
11+
# generate strings so we could use new strings
1312
# before sync to Crowdin
1413

1514
# clean Base.lproj
@@ -31,11 +30,10 @@ cp -R ${SRCROOT}/Localization/StringsConvertor/Intents/output/ ${SRCROOT}/Mastod
3130

3231
# Task 4 swiftgen
3332
cd ${SRCROOT}
34-
echo "${PODS_ROOT}/SwiftGen/bin/swiftgen"
35-
if [[ -f "${PODS_ROOT}/SwiftGen/bin/swiftgen" ]] then
36-
"${PODS_ROOT}/SwiftGen/bin/swiftgen"
33+
if which swiftgen >/dev/null; then
34+
swiftgen
3735
else
38-
echo "Run 'bundle exec pod install' or update your CocoaPods installation."
36+
echo "Run 'brew install swiftgen'."
3937
fi
4038

4139
# Task 5 clean temp file

0 commit comments

Comments
 (0)