From: Alexander Traud Date: Tue, 16 Jan 2018 12:34:23 +0000 (+0100) Subject: BuildSystem: Avoid $EUID and use id -u instead. X-Git-Tag: 13.20.0-rc1~78^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=637bd26575f55d73f290c3ada99033042ca3b7be;p=thirdparty%2Fasterisk.git BuildSystem: Avoid $EUID and use id -u instead. Makefile included a call to ${EUID} which requires the shell bash. To keep compatibility with other shells like dash or ksh, use id -u instead. ASTERISK-27589 Change-Id: Ia6e74f5bc9aab4e6dc62b7439f647b7964e6f657 --- diff --git a/Makefile b/Makefile index e9972af330..28245aa971 100644 --- a/Makefile +++ b/Makefile @@ -625,7 +625,7 @@ oldmodcheck: ld-cache-update: ifneq ($(LDCONFIG),) ifeq ($(DESTDIR),) # DESTDIR means binary archive creation; ldconfig should be run on postinst - @if [ $${EUID} -eq 0 ] ; then \ + @if [ $$(id -u) -eq 0 ] ; then \ $(LDCONFIG) "$(ASTLIBDIR)/" ; \ else \ echo " WARNING WARNING WARNING" ;\