From a85052ce3f9ea8c258aa3ae832a9d1bc18c597c1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 29 Nov 2014 08:57:09 -0800 Subject: [PATCH] build.sh: Use 'id -u -n' instead of 'whoami' for POSIX compatibility 'whoami' isn't in the POSIX spec, but 'id -u -n' is in POSIX and does the same thing [2]. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html [2]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/id.html#tag_20_59_18 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4405ce8..c827110 100755 --- a/build.sh +++ b/build.sh @@ -26,7 +26,7 @@ # POSSIBILITY OF SUCH DAMAGE. AUTHOR="${AUTHOR:-W. Trevor King }" -NAMESPACE="${NAMESPACE:-$(whoami)}" +NAMESPACE="${NAMESPACE:-$(id -u -n)}" DATE="${DATE:-20141023}" MIRROR="${MIRROR:-http://distfiles.gentoo.org/}" ARCH_URL="${ARCH_URL:-${MIRROR}releases/amd64/autobuilds/${DATE}/}" -- 2.26.2