WKZombie/Scripts/update-carthage.sh

11 lines
248 B
Bash
Raw Normal View History

2016-04-08 00:30:20 +03:00
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo "Carthage version required (e.g. 0.11)"
exit 1
fi
curl -OlL "https://github.com/Carthage/Carthage/releases/download/$1/Carthage.pkg"
sudo installer -pkg "Carthage.pkg" -target /
rm "Carthage.pkg"