prefix by user during install

pull/119/head
Jean Claveau 5 years ago committed by Joseph Werle
parent ab8f787e4b
commit 9ce37a2f98

@ -383,6 +383,15 @@ bpkg_install_from_remote () {
build='make install'
fi
if [ -z "$PREFIX" ]; then
if [ $USER == 'root' ]; then
PREFIX="/usr/local"
else
PREFIX="$HOME/.local"
fi
build="env PREFIX=$PREFIX $build"
fi
{ (
## go to tmp dir
cd "$( [[ ! -z "${TMPDIR}" ]] && echo "${TMPDIR}" || echo /tmp)" &&

Loading…
Cancel
Save