mirror of
https://github.com/bpkg/bpkg
synced 2024-11-04 06:00:18 +00:00
Setup to $HOME/.local if run as non root user
This commit is contained in:
parent
66ffdf24df
commit
ab8f787e4b
8
setup.sh
8
setup.sh
@ -60,7 +60,13 @@ setup () {
|
||||
|
||||
## make targets
|
||||
BIN="bpkg"
|
||||
[ -z "$PREFIX" ] && PREFIX="/usr/local"
|
||||
if [ -z "$PREFIX" ]; then
|
||||
if [ $USER == 'root' ]; then
|
||||
PREFIX="/usr/local"
|
||||
else
|
||||
PREFIX="$HOME/.local"
|
||||
fi
|
||||
fi
|
||||
|
||||
# All 'bpkg' supported commands
|
||||
CMDS="json install package term suggest init utils update list show getdeps"
|
||||
|
Loading…
Reference in New Issue
Block a user