File tree 7 files changed +13
-13
lines changed
7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# Needed to circumvent an issue with Carthage version < 0.37.0: https://.com/Carthage/Carthage/issues/3019
4
4
#
5
5
# carthage.sh
6
6
# Usage example: ./carthage.sh build --platform iOS
7
7
8
8
VERSION=" $( carthage version) "
9
- " $( dirname " $0 " ) /versions.sh" " $VERSION " " 0.37.0"
9
+ comparison= $( " $( dirname " $0 " ) /versions.sh" " $VERSION " " 0.37.0" ; echo $? )
10
10
11
- if [ $? -ge 0 ]; then
11
+ if [ $comparison -ge 0 ]; then
12
12
# Carthage version is greater than or equal to 0.37.0 meaning we can use the --use-xcframeworks flag
13
13
carthage " $@ " --use-xcframeworks
14
14
else
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# xcframework.sh
4
4
# Usage example: ./findproject.sh --project-name <project_name>
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# https://gist..com/SomeRandomiOSDev/798406a4a15f6b5d78b010599865c04f
4
4
#
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# resolvepath.sh
4
4
# Usage example: ./resolvepath.sh "./some/random/path/../../"
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# versions.sh
4
4
# Usage example: ./versions.sh "1.4.15" "1.7.0"
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# workflowtests.sh
4
4
# Usage example: ./workflowtests.sh --no-clean
@@ -261,9 +261,9 @@ if which carthage >/dev/null; then
261
261
CARTHAGE_VERSION=" $( carthage version) "
262
262
echo " Carthage: $CARTHAGE_VERSION "
263
263
264
- " $SCRIPTS_DIR /versions.sh" " $CARTHAGE_VERSION " " 0.37.0"
264
+ comparison= $( " $SCRIPTS_DIR /versions.sh" " $CARTHAGE_VERSION " " 0.37.0" ; echo $? )
265
265
266
- if [ $? -lt 0 ]; then
266
+ if [ $comparison -lt 0 ]; then
267
267
" $SCRIPTS_DIR /printformat.sh" " foreground:yellow" " Carthage version of at least 0.37.0 is recommended for running these unit tests"
268
268
fi
269
269
else
274
274
275
275
if which pod > /dev/null; then
276
276
PODS_VERSION=" $( pod --version) "
277
- " $SCRIPTS_DIR /versions.sh" " $PODS_VERSION " " 1.7.3"
277
+ comparison= $( " $SCRIPTS_DIR /versions.sh" " $PODS_VERSION " " 1.7.3" ; echo $? )
278
278
279
- if [ $? -ge 0 ]; then
279
+ if [ $comparison -ge 0 ]; then
280
280
echo " CocoaPods: $PODS_VERSION "
281
281
else
282
282
checkresult -1 " These unit tests require version 1.7.3 or later of CocoaPods: $( " $SCRIPTS_DIR /printformat.sh" " foreground:blue;underline" " https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods" ) "
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env bash -e -o pipefail
2
2
#
3
3
# xcframework.sh
4
4
# Usage example: ./xcframework.sh --output <some_path>/<name>.xcframework
You can’t perform that action at this time.
0 commit comments