Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change to recognize '$VS_URL'

  • Loading branch information...
commit 01ce5d2ce5f97ed0ac5d2c56df89cdd57c501aa0 1 parent d758554
@kwatch authored
Showing with 4 additions and 3 deletions.
  1. +1 −0  scripts/install.sh
  2. +3 −3 scripts/versionswitcher.sh
View
1  scripts/install.sh
@@ -31,6 +31,7 @@ vs_install() {
local vs_home="$HOME/.vs"
local vs_url="http://versionswitcher.appspot.com"
[ -n "$VS_DEBUG" ] && vs_url="http://localhost:8080"
+ [ -n "$VS_URL" ] && vs_url=$VS_URL
local prompt="***"
## detect 'wget' or 'curl' command
local curl=`which curl`
View
6 scripts/versionswitcher.sh
@@ -275,9 +275,8 @@ __vs_switch() {
__vs_download() {
local filename=$1
local url="http://versionswitcher.appspot.com/$filename"
- if [ -n "$VS_DEBUG" ]; then
- url="http://localhost:8080/$filename"
- fi
+ [ -n "$VS_DEBUG" ] && url="http://localhost:8080/$filename"
+ [ -n "$VS_URL" ] && url="$VS_URL/$filename"
local vs_home="$HOME/.vs"
local dir=`dirname $filename`
[ "$dir" = "." ] && dir=""
@@ -434,6 +433,7 @@ __vs_install() {
__vs_upgrade() {
local site="http://versionswitcher.appspot.com"
[ -n "$VS_DEBUG" ] && site="http://localhost:8080"
+ [ -n "$VS_URL" ] && site="$VS_URL"
local down=`__vs_downloader "-sL" "-q -O -"` || return 1
local ver=`$down $site/version`
if [ "$ver" = "$__vs_version" -a -z "$VS_DEBUG" ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.