diff --git a/scripts/carthage.sh b/scripts/carthage.sh index 208740d..bd22a3e 100755 --- a/scripts/carthage.sh +++ b/scripts/carthage.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash -e -o pipefail # # Needed to circumvent an issue with Carthage version < 0.37.0: https://github.com/Carthage/Carthage/issues/3019 # @@ -6,9 +6,9 @@ # Usage example: ./carthage.sh build --platform iOS VERSION="$(carthage version)" -"$(dirname "$0")/versions.sh" "$VERSION" "0.37.0" +comparison=$("$(dirname "$0")/versions.sh" "$VERSION" "0.37.0"; echo $?) -if [ $? -ge 0 ]; then +if [ "$comparison" -ge 0 ]; then # Carthage version is greater than or equal to 0.37.0 meaning we can use the --use-xcframeworks flag carthage "$@" --use-xcframeworks else diff --git a/scripts/findproject.sh b/scripts/findproject.sh index e5f9b07..48ab171 100755 --- a/scripts/findproject.sh +++ b/scripts/findproject.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash -e -o pipefail # # xcframework.sh # Usage example: ./findproject.sh --project-name diff --git a/scripts/printformat.sh b/scripts/printformat.sh index 63f1460..25a6dee 100755 --- a/scripts/printformat.sh +++ b/scripts/printformat.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash -e -o pipefail # # https://gist.github.com/SomeRandomiOSDev/798406a4a15f6b5d78b010599865c04f # diff --git a/scripts/resolvepath.sh b/scripts/resolvepath.sh index 7b78b33..5597341 100755 --- a/scripts/resolvepath.sh +++ b/scripts/resolvepath.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash -e -o pipefail # # resolvepath.sh # Usage example: ./resolvepath.sh "./some/random/path/../../" diff --git a/scripts/versions.sh b/scripts/versions.sh index 31eb795..27b18ea 100755 --- a/scripts/versions.sh +++ b/scripts/versions.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash -e -o pipefail # # versions.sh # Usage example: ./versions.sh "1.4.15" "1.7.0" diff --git a/scripts/xcframework.sh b/scripts/xcframework.sh index dbe5625..ba208e5 100755 --- a/scripts/xcframework.sh +++ b/scripts/xcframework.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env bash -e -o pipefail # # xcframework.sh # Usage example: ./xcframework.sh --output /.xcframework