Skip to content

Commit 7308dc6

Browse files
author
Emily Toop
committed
Install carthage 0.11 if not installed
1 parent 7e29082 commit 7308dc6

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

carthage.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env sh
22
CARTHAGE_VERSION=$(carthage version)
3-
if [[ $CARTHAGE_VERSION<0.11.0 || $CARTHAGE_VERSION>0.11.0 ]]; then
4-
echo "Carthage requires upgrade"
3+
if which carthage ==/dev/null || [[ $CARTHAGE_VERSION<0.11.0 || $CARTHAGE_VERSION>0.11.0 ]]; then
4+
echo "Installing Carthage 0.11"
55
brew update
66
brew install https://github.com/Carthage/Carthage/releases/tag/0.11
77
fi

checkout.sh

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/usr/bin/env sh
2-
if which carthage >/dev/null; then
3-
./carthage.sh
4-
carthage bootstrap --platform ios --no-use-binaries
5-
else
6-
echo "\"carthage\" not found. please install with the following command:"
7-
echo "\t brew update && brew install carthage"
8-
fi
2+
3+
./carthage.sh
4+
5+
carthage bootstrap --platform ios --no-use-binaries

update.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/usr/bin/env sh
2-
if which carthage >/dev/null; then
3-
./carthage.sh
42

5-
carthage update --platform ios --no-use-binaries
6-
else
7-
echo "\"carthage\" not found. please install with the following command:"
8-
echo "\t brew update && brew install carthage"
9-
fi
3+
./carthage.sh
4+
5+
carthage update --platform ios --no-use-binaries

0 commit comments

Comments
 (0)