Skip to content

Commit

Permalink
fix 'versionswitcher.sh' to work on zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatch committed Feb 18, 2012
1 parent 01ce5d2 commit 5bebfae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/versionswitcher.sh
Expand Up @@ -323,9 +323,10 @@ __vs_installable_versions() {
[ -f /usr/local/bin/perl ] && perl='/usr/local/bin/perl'; [ -f /usr/local/bin/perl ] && perl='/usr/local/bin/perl';
[ -f /usr/bin/perl ] && perl='/usr/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 if [ "$condense" = 'y' ]; then
$down $url $url2 | $perl -e ' eval $down $url $url2 | $perl -e '
$sep = "'$sep'"; $sep = "'$sep'";
$rexp = q`'$rexp'`; $rexp = q`'$rexp'`;
$none = "'$none'"; $none = "'$none'";
Expand All @@ -340,7 +341,7 @@ __vs_installable_versions() {
} }
' '
else else
$down $url $url2 | $perl -e ' eval $down $url $url2 | $perl -e '
$sep = "'$sep'"; $sep = "'$sep'";
$rexp = q`'$rexp'`; $rexp = q`'$rexp'`;
$none = "'$none'"; $none = "'$none'";
Expand Down

0 comments on commit 5bebfae

Please sign in to comment.