Skip to content

Commit

Permalink
beelib: try harder to get the user name
Browse files Browse the repository at this point in the history
also check $USER and $USERNAME for getting the user name
  • Loading branch information
Matthias Ruester committed Jan 27, 2012
1 parent 21b2f98 commit d557fb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/beelib.config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ function config_verify_builtin_config() {
: ${BEE_CACHEDIR=${XDG_CACHE_HOME}/bee}
fi

user=${LOGNAME}
: ${user:=${USER}}
: ${user:=${USERNAME}}

: ${BEE_TMP_TMPDIR:=/tmp}
: ${BEE_TMP_BUILDROOT:=${BEE_TMP_TMPDIR}/beeroot-${LOGNAME}}
: ${BEE_TMP_BUILDROOT:=${BEE_TMP_TMPDIR}/beeroot-${user}}

: ${BEE_REPOSITORY_BEEDIR:=${BEE_REPOSITORY_PREFIX}/bees}
: ${BEE_REPOSITORY_PKGDIR:=${BEE_REPOSITORY_PREFIX}/pkgs}
Expand Down

0 comments on commit d557fb6

Please sign in to comment.