Skip to content
Snippets Groups Projects
Commit 51313e30 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

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

parents 193bdfe5 a046305f
No related branches found
No related tags found
No related merge requests found
...@@ -624,7 +624,7 @@ oldmodcheck: ...@@ -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" ;\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment