From 30e13a429c894d5f1f31510d104043191ed3d1a3 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Mon, 23 Jun 2014 23:26:08 +0200 Subject: [ticket/12693] Check if the are executable and not if they are 644 PHPBB3-12693 --- travis/check-executable-files.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'travis') diff --git a/travis/check-executable-files.sh b/travis/check-executable-files.sh index 99562d8925..78a0285f4e 100755 --- a/travis/check-executable-files.sh +++ b/travis/check-executable-files.sh @@ -38,15 +38,19 @@ then -name 'composer.phar' \ ')' \ -a '(' \ - -type f -a \ - -not -perm 644 \ + '(' \ + -type f -a \ + -perm +111 \ + ')' -o \ + -not -perm +600 \ ')' \ ')' \ ) if [ "$executables_files" != '' ] then - echo "$executables_files MUST have the right 644."; + ls -la $executables_files + echo "$executables_files MUST NOT be executable."; exit 1; fi fi -- cgit v1.2.1