Fix 'doit -s' on Darwin, find does not understand '-executable' (#15)
Change-Id: I038f6fced0104740079b45966506904ce2dfade8
diff --git a/doit b/doit
index 1feff62..07bf068 100755
--- a/doit
+++ b/doit
@@ -265,8 +265,8 @@
# Optionally strip the binaries
if [ "${STRIP}" = "1" ]; then
- find "${INSTALLPATH}/bin" -type f -executable -exec strip {} \;
- for filename in $(find "${INSTALLPATH}/libexec" -type f -executable); do
+ find "${INSTALLPATH}/bin" -type f -exec strip {} \;
+ for filename in $(find "${INSTALLPATH}/libexec" -type f); do
(file "${filename}" | grep -q ELF) && strip "${filename}"
done
fi