Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix 'versionswitcher.sh' to work on zsh

  • Loading branch information...
commit 5ef7ba8c9b88b189f28c011ee44d3a8ffe238679 1 parent 9cff8a2
@kwatch authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 scripts/versionswitcher.sh
View
8 scripts/versionswitcher.sh
@@ -93,7 +93,7 @@ versionswitcher() {
gauche|gosh) lang="gauche" ; binname="gosh" ;;
*) binname=$lang ;;
esac
- __vs_switch $lang $biname "$version"
+ __vs_switch "$lang" "$biname" "$version"
;;
esac
unset __vs_option_quiet
@@ -285,7 +285,8 @@ __vs_download() {
if [ -n "$dir" -a ! -d "$vs_home/$dir" ]; then
mkdir -p $vs_home/$dir || __vs_error "Failed: mkdir -p $vs_home/$dir" || return 1
fi
- local down=`__vs_downloader -sORL -qN` || return 1
+ local down
+ downn=`__vs_downloader '-sORL' '-qN'` || return 1
(cd $vs_home/$dir; eval $down $url) || __vs_error "Failed: $down $url" || return 1
echo $vs_home/$filename
}
@@ -437,7 +438,8 @@ __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 down
+ down=`__vs_downloader '-sL' '-q -O -'` || return 1
local ver=`eval $down $site/version`
if [ "$ver" = "$__vs_version" -a -z "$VS_DEBUG" ]; then
__vs_echo "current version is newest. exist."
Please sign in to comment.
Something went wrong with that request. Please try again.