refactor(lib/install/install.sh): Use double-quotes and double bracket conditional compound

pull/123/head
Dominic Giglio 4 years ago committed by Joseph Werle
parent f0496dfbf5
commit 9d497908cd

@ -384,14 +384,14 @@ bpkg_install_from_remote () {
fi
if [ -z "$PREFIX" ]; then
if [ $USER == 'root' ]; 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