summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2025-04-13 15:01:18 -0400
committerMatt Hunter <m@lfurio.us>2025-04-13 15:01:18 -0400
commit0695fe20968ff708cfdaadaaa262abb17f02672f (patch)
tree7f60fcbf005b531d1cee1116da870cf5d4686344 /Makefile
parent07de57717b87740dcf01fad7449d3bd7594d4369 (diff)
downloadgit-sonar-0695fe20968ff708cfdaadaaa262abb17f02672f.tar.gz
git-sonar-0695fe20968ff708cfdaadaaa262abb17f02672f.zip
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 <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 '...'