Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Brenon
arcades
Commits
28aa934c
Commit
28aa934c
authored
Dec 22, 2017
by
Alexis Brenon
Browse files
🚑
Fix dependencies installation
parent
8eba1bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
install_dependencies.sh
View file @
28aa934c
...
...
@@ -37,6 +37,7 @@ command -v curl &> /dev/null || { echo 'ERROR: curl not found. Contact your admi
# Build and install Torch
th_luarocks
=
false
echo
"Intalling Torch"
git config
--global
url.https://github.com/.insteadOf git://github.com/
# Use https instead of ssh
if
[[
!
-x
"
$(
command
-v
th
)
"
]]
then
th_git
=
"
$(
mktemp
-d
)
"
...
...
@@ -97,7 +98,6 @@ fi
# Install some Lua third libs
echo
"Intalling Lua third libraries"
set
-x
$th_luarocks
install
lualogging 1> /dev/null
$th_luarocks
install hash
1> /dev/null
set
+x
echo
""
...
...
@@ -106,5 +106,6 @@ echo ""
# Clean up
[[
"
$(
find
"
${
PREFIX
}
"
-mindepth
1
-maxdepth
1 |
wc
-l
)
"
-eq
0
]]
&&
rmdir
"
${
PREFIX
}
"
git config
--global
--unset
url.https://github.com/.insteadof
true
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment