fix(setup.sh): use 'whoami' instead of '$USER'

pull/144/head
jwerle 2 years ago
parent 85a7c85bf7
commit c631e9aec7

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

Loading…
Cancel
Save