Permalink
Browse files

fix 'versionswitcher.sh' to work on zsh

  • Loading branch information...
1 parent 01ce5d2 commit 5bebfae4e30dd1983f79b3eb82232e08871289b2 @kwatch committed Feb 18, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 scripts/versionswitcher.sh
@@ -323,9 +323,10 @@ __vs_installable_versions() {
[ -f /usr/local/bin/perl ] && perl='/usr/local/bin/perl';
[ -f /usr/bin/perl ] && perl='/usr/bin/perl';
#
- local down=`__vs_downloader "-sL" "-q -O - --no-check-certificate"` || return 1
+ local down
+ down=`__vs_downloader "-sL" "-q -O - --no-check-certificate"` || return 1
if [ "$condense" = 'y' ]; then
- $down $url $url2 | $perl -e '
+ eval $down $url $url2 | $perl -e '
$sep = "'$sep'";
$rexp = q`'$rexp'`;
$none = "'$none'";
@@ -340,7 +341,7 @@ __vs_installable_versions() {
}
'
else
- $down $url $url2 | $perl -e '
+ eval $down $url $url2 | $perl -e '
$sep = "'$sep'";
$rexp = q`'$rexp'`;
$none = "'$none'";

0 comments on commit 5bebfae

Please sign in to comment.