Commit 28aa934c authored by Alexis Brenon's avatar Alexis Brenon
Browse files

馃殤 Fix dependencies installation

parent 8eba1bd2
...@@ -37,6 +37,7 @@ command -v curl &> /dev/null || { echo 'ERROR: curl not found. Contact your admi ...@@ -37,6 +37,7 @@ command -v curl &> /dev/null || { echo 'ERROR: curl not found. Contact your admi
# Build and install Torch # Build and install Torch
th_luarocks=false th_luarocks=false
echo "Intalling Torch" echo "Intalling Torch"
git config --global url.https://github.com/.insteadOf git://github.com/ # Use https instead of ssh
if [[ ! -x "$(command -v th)" ]] if [[ ! -x "$(command -v th)" ]]
then then
th_git="$(mktemp -d)" th_git="$(mktemp -d)"
...@@ -97,7 +98,6 @@ fi ...@@ -97,7 +98,6 @@ fi
# Install some Lua third libs # Install some Lua third libs
echo "Intalling Lua third libraries" echo "Intalling Lua third libraries"
set -x set -x
$th_luarocks install lualogging 1> /dev/null
$th_luarocks install hash 1> /dev/null $th_luarocks install hash 1> /dev/null
set +x set +x
echo "" echo ""
...@@ -106,5 +106,6 @@ echo "" ...@@ -106,5 +106,6 @@ echo ""
# Clean up # Clean up
[[ "$(find "${PREFIX}" -mindepth 1 -maxdepth 1 | wc -l)" -eq 0 ]] && rmdir "${PREFIX}" [[ "$(find "${PREFIX}" -mindepth 1 -maxdepth 1 | wc -l)" -eq 0 ]] && rmdir "${PREFIX}"
git config --global --unset url.https://github.com/.insteadof
true true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment