From 0695fe20968ff708cfdaadaaa262abb17f02672f Mon Sep 17 00:00:00 2001 From: Matt Hunter Date: Sun, 13 Apr 2025 15:01:18 -0400 Subject: Fix potential installation problems with odd file permissions It is possible for git-sonar to be installed in such a way that it is only executable by root. For example, by running `make install` after checking out the git tree by a user with a restrictive umask value. Use the install command in the Makefile to explicitly set the correct mode bits of the installed git-sonar script. Signed-off-by: Matt Hunter --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ef233c9..95538ac 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ all: install: $(SOURCE) @echo 'Installing in' $(PREFIX)/bin '...' mkdir -p $(PREFIX)/bin - cp $(PWD)/$(SOURCE) $(PREFIX)/bin + install -m 755 $(SOURCE) $(PREFIX)/bin develop: $(SOURCE) @echo 'Symlinking in' $(PREFIX)/bin '...' -- cgit v1.2.3