Merge "BuildSystem: Avoid $EUID and use id -u instead."

This commit is contained in:
Jenkins2
2018-01-18 19:31:20 -06:00
committed by Gerrit Code Review

View File

@@ -624,7 +624,7 @@ oldmodcheck:
ld-cache-update: ld-cache-update:
ifneq ($(LDCONFIG),) ifneq ($(LDCONFIG),)
ifeq ($(DESTDIR),) # DESTDIR means binary archive creation; ldconfig should be run on postinst 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)/" ; \ $(LDCONFIG) "$(ASTLIBDIR)/" ; \
else \ else \
echo " WARNING WARNING WARNING" ;\ echo " WARNING WARNING WARNING" ;\