Skip to content

Commit

Permalink
find a better sudo_info
Browse files Browse the repository at this point in the history
  • Loading branch information
jeonghanlee committed Aug 28, 2024
1 parent 20ee774 commit f0b5bac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions configure/CONFIG_SRC
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ endif
# IF INSTALL_LOCATION is not WRITABLE, SUDO and SUDOBASH should be used
# SUDO_INFO 1 : SUDO is needed (NOT writable)
# SUDO_INFO 0 : SUDO is not needed
ifeq "$(INSTALL_LOCATION)" "${HOME}"
SUDO_INFO := $(shell test -w $(INSTALL_LOCATION_CHECK) 1>&2 2> /dev/null; echo $$?)
else
SUDO_INFO := $(shell test -w $(INSTALL_LOCATION_CHECK)/.. 1>&2 2> /dev/null; echo $$?)
endif
#ifeq "$(INSTALL_LOCATION)" "${HOME}"
SUDO_INFO := $(shell makedir -p $(INSTALL_LOCATION_CHECK) 1>&2 2> /dev/null; echo $$?)
#else
#SUDO_INFO := $(shell test -w $(INSTALL_LOCATION_CHECK)/.. 1>&2 2> /dev/null; echo $$?)
#endif

SUDO_CMD := $(shell which sudo)

Expand Down

0 comments on commit f0b5bac

Please sign in to comment.