Skip to content

Commit

Permalink
chnge sudo detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 2, 2024
1 parent c6f8899 commit 2f81d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else ifeq ($(UNAME_S),OpenBSD)
OPENBSD = true
endif

ifneq (,$(shell command -v sudo 2> /dev/null))
ifneq ($(shell id -u), 0)
SUDO = sudo
endif

Expand Down

0 comments on commit 2f81d82

Please sign in to comment.