I am writing an installation script, and would like it to install in a local directory if the user does not have root access.
specifically, I am looking for the code that goes between the carats (<>
)
if [[<do I have root access? = TRUE>]]; then
.. install ..
else
.. install in $HOME/mylib ..
fi