Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix installer scripts to work on zsh

  • Loading branch information...
commit 74cbfc25dca43e8719ea2f59b6d61b466dc36e58 1 parent 4197bbb
@kwatch authored
View
3  installers/vs_install.sh
@@ -70,7 +70,8 @@ _generic_installer() {
esac
## donwload
if [ ! -e "$filename" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $url" || return 1
fi
_cmd "$untar $filename" || return 1
View
3  installers/vs_install_lua.sh
@@ -29,7 +29,8 @@ _install_lua() {
local base="lua-$version"
local url="http://www.lua.org/ftp/$base.tar.gz"
if [ ! -e "$base.tar.gz" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $url" || return 1
fi
_cmd "tar xzf $base.tar.gz" || return 1
View
3  installers/vs_install_luajit.sh
@@ -20,7 +20,8 @@ _install_luajit() {
local url="http://luajit.org/download/$base.tar.gz"
local nice="nice -10"
if [ ! -e "$base.tar.gz" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $url" || return 1
fi
_cmd "tar xzf $base.tar.gz" || return 1
View
6 installers/vs_install_node.sh
@@ -41,7 +41,8 @@ _install_node() {
;;
esac
if [ ! -e "$base.tar.gz" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $url" || return 1
fi
_cmd "$nice tar xzf $base.tar.gz" || return 1
@@ -67,7 +68,8 @@ _install_node() {
y*|Y*)
#_cmd "curl http://npmjs.org/install.sh | sh" || return 1
#_cmd "wget -qO - http://npmjs.org/install.sh | sh" || return 1
- local down=`_downloader "-LRO" "-N"` || return 1
+ local down
+ down=`_downloader "-LRO" "-N"` || return 1
_cmd "$down http://npmjs.org/install.sh" || return 1
_cmd "sh install.sh" || return 1
local npm_path=`which npm`
View
3  installers/vs_install_perl.sh
@@ -31,7 +31,8 @@ _install_perl() {
case "$input" in
y*|Y*)
url="http://cpanmin.us/"
- local down=`_downloader "-Lo" "--no-check-certificate -O"` || return 1
+ local down
+ down=`_downloader "-Lo" "--no-check-certificate -O"` || return 1
_cmd "$down $prefix/bin/$script $url" || return 1
_cmd "chmod a+x $prefix/bin/$script" || return 1
_cmd "which $script" || return 1
View
6 installers/vs_install_pypy.sh
@@ -34,7 +34,8 @@ _install_pypy() {
local base="pypy-$ver-$target"
local url="https://bitbucket.org/pypy/pypy/downloads/$base.tar.bz2"
if [ ! -e "$base.tar.bz2" ]; then
- local down=`_downloader "-LRO" "--no-check-certificate"` || return 1
+ local down
+ down=`_downloader "-LRO" "--no-check-certificate"` || return 1
_cmd "$down $url" || return 1
fi
_cmd "rm -rf $base" || return 1
@@ -87,7 +88,8 @@ _install_pypy() {
case "$input" in
y*|Y*)
url="http://python-distribute.org/$script"
- local down=`_downloader "-ORL" "-N"` || return 1
+ local down
+ down=`_downloader "-ORL" "-N"` || return 1
_cmd "$down $url" || return 1
_cmd "$prefix/bin/pypy $script" || return 1
_cmd "which easy_install" || return 1
View
6 installers/vs_install_python.sh
@@ -82,7 +82,8 @@ _install_python() {
local url="http://www.python.org/ftp/python/$ver/$filename"
local nice="nice -10"
if [ ! -e "$filename" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $url" || return 1
fi
_cmd "rm -rf $base" || return 1
@@ -126,7 +127,8 @@ _install_python() {
case "$input" in
y*|Y*)
url="http://python-distribute.org/$script"
- local down=`_downloader "-ORL" "-N"` || return 1
+ local down
+ down=`_downloader "-ORL" "-N"` || return 1
_cmd "$down $url" || return 1
_cmd "$prefix/bin/python $script" || return 1
_cmd "which easy_install" || return 1
View
6 installers/vs_install_rubinius.sh
@@ -95,7 +95,8 @@ _install_rubinius() {
if [ "$kind" = "source" ]; then
base="rubinius-$version-$date"
if [ ! -e "$base.tar.gz" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $siteurl/$base.tar.gz" || return 1
fi
_cmd "rm -rf rubinius-$version" || return 1
@@ -108,7 +109,8 @@ _install_rubinius() {
else
base="rubinius-$version-$kind"
if [ ! -e "$base.zip" ]; then
- local down=`_downloader "-LRO" ""` || return 1
+ local down
+ down=`_downloader "-LRO" ""` || return 1
_cmd "$down $siteurl/$base.zip" || return 1
fi
_cmd "rm -rf $base" || return 1
View
6 installers/vs_install_ruby.sh
@@ -55,7 +55,8 @@ _install_ruby() {
local url="ftp://ftp.ruby-lang.org/pub/ruby/$ver/$filename"
local nice="nice -10"
if [ ! -f "$filename" ]; then
- local down=`_downloader "-ORL" "-N"` || return 1
+ local down
+ down=`_downloader "-ORL" "-N"` || return 1
_cmd "$down $url" || return 1
fi
_cmd "rm -rf $base" || return 1
@@ -85,7 +86,8 @@ _install_ruby() {
y*|Y*)
base="rubygems-1.8.17"
url="http://production.cf.rubygems.org/rubygems/$base.tgz"
- local down=`_downloader "-ORL" "-N"` || return 1
+ local down
+ down=`_downloader "-ORL" "-N"` || return 1
_cmd "$down $url" || return 1
_cmd "tar xzf $base.tgz" || return 1
_cmd "cd $base/" || return 1
Please sign in to comment.
Something went wrong with that request. Please try again.