refactor(setup.sh): Use single bracket with quoted USER env variable

pull/123/head
Joseph Werle 4 years ago committed by Joseph Werle
parent 8e9e6e96f4
commit f0496dfbf5

@ -61,7 +61,7 @@ setup () {
## make targets
BIN="bpkg"
if [ -z "$PREFIX" ]; then
if [[ $USER == "root" ]]; then
if [ "$USER" == "root" ]; then
PREFIX="/usr/local"
else
PREFIX="$HOME/.local"

Loading…
Cancel
Save