summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2017-09-25 10:59:25 +0200
committerAchilleas Pipinellis <axil@gitlab.com>2017-09-25 10:59:25 +0200
commit0741b86b2790dca9394f05ca19c336aaecb9d6cd (patch)
treeddab7a798b6725bc46cb98c40d63f6b755dc9e8d /scripts
parent6532c137a74a23f062be29770c84ec2ab8cf5116 (diff)
downloadgitlab-ce-0741b86b2790dca9394f05ca19c336aaecb9d6cd.tar.gz
Check for exec permissions also in app/docs/chmod-644
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/lint-doc.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/lint-doc.sh b/scripts/lint-doc.sh
index fffb727ac2f..e5242fee32b 100755
--- a/scripts/lint-doc.sh
+++ b/scripts/lint-doc.sh
@@ -24,13 +24,12 @@ then
fi
# Make sure no files in doc/ are executable
-EXEC_PERM_COUNT=$(find doc/ -type f -perm 755 | wc -l)
+EXEC_PERM_COUNT=$(find doc/ app/ -type f -perm 755 | wc -l)
echo 'Checking for executable permissions...'
if [ "${EXEC_PERM_COUNT}" -ne 0 ]
then
echo '✖ ERROR: Executable permissions should not be used in documentation! Use `chmod 644` to the files in question:' >&2
- echo
- find doc/ -type f -perm 755
+ find doc/ app/ -type f -perm 755
exit 1
fi