Make "lein upgrade" look at preview branch.
This commit is contained in:
parent
15f0540c04
commit
fe14bed743
1 changed files with 2 additions and 2 deletions
4
bin/lein
4
bin/lein
|
@ -168,7 +168,7 @@ elif [ "$1" = "upgrade" ]; then
|
||||||
echo "You do not have permission to upgrade the installation in $SCRIPT"
|
echo "You do not have permission to upgrade the installation in $SCRIPT"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "The script at $SCRIPT will be upgraded to the latest stable version."
|
echo "The script at $SCRIPT will be upgraded to the latest preview version."
|
||||||
echo -n "Do you want to continue [Y/n]? "
|
echo -n "Do you want to continue [Y/n]? "
|
||||||
read RESP
|
read RESP
|
||||||
case "$RESP" in
|
case "$RESP" in
|
||||||
|
@ -176,7 +176,7 @@ elif [ "$1" = "upgrade" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Upgrading..."
|
echo "Upgrading..."
|
||||||
TARGET="/tmp/lein-$$-upgrade"
|
TARGET="/tmp/lein-$$-upgrade"
|
||||||
LEIN_SCRIPT_URL="https://github.com/technomancy/leiningen/raw/stable/bin/lein"
|
LEIN_SCRIPT_URL="https://github.com/technomancy/leiningen/raw/preview/bin/lein"
|
||||||
$HTTP_CLIENT "$TARGET" "$LEIN_SCRIPT_URL" \
|
$HTTP_CLIENT "$TARGET" "$LEIN_SCRIPT_URL" \
|
||||||
&& mv "$TARGET" "$SCRIPT" \
|
&& mv "$TARGET" "$SCRIPT" \
|
||||||
&& chmod +x "$SCRIPT" \
|
&& chmod +x "$SCRIPT" \
|
||||||
|
|
Loading…
Reference in a new issue