From: W. Trevor King Date: Sat, 29 Nov 2014 16:57:09 +0000 (-0800) Subject: build.sh: Use 'id -u -n' instead of 'whoami' for POSIX compatibility X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a85052ce3f9ea8c258aa3ae832a9d1bc18c597c1;p=dockerfile.git 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 --- 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}/}"