Commit 52c1f4c3 authored by Blaise Li's avatar Blaise Li
Browse files

Install to /usr/local/bin when root installs.

parent 5f3090e3
......@@ -66,4 +66,11 @@ doctest --version 2> /dev/null \
make_stack_options
stack ${stack_options} build --exec "hlint src/Main.hs" --exec "scan -j False src/Main.hs" --exec "doctest src/Main.hs"
stack install
if [ "${USER}" == "root" ]
then
# We don't want things to be installed in root's home directory.
stack install --local-bin-path "/usr/local/bin"
else
stack install
fi
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