From c72b86ad5c26d32e47fc4eb341b4fc226a8fba11 Mon Sep 17 00:00:00 2001
From: Steve Purcell <steve@sanityinc.com>
Date: Sat, 25 Nov 2017 16:05:05 +1300
Subject: [PATCH] Better use of chmod before building gem

---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 77b570f..67b6aaf 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,9 @@ test:
 
 gem:
 	# Ensure perms are correct
-	find . -type d -not -path "./.git/*" -exec chmod a+rx '{}' ';'
-	find . -type f -not -path "./.git/*" -exec chmod a+r '{}' ';'
-	chmod a+x bin/sqlint
+	chmod +x bin/sqlint
+	chmod -R a+r *
+	chmod -R a+X *
 	gem build sqlint.gemspec
 
 .PHONY: gem test
-- 
GitLab