From a51609962708140461eec9272bb8e7118605079a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 16 Jun 2022 06:55:04 +0200 Subject: [PATCH] Update onpush_chmod.yaml --- .github/workflows/onpush_chmod.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/onpush_chmod.yaml b/.github/workflows/onpush_chmod.yaml index bab3c4c38..176ce15ca 100644 --- a/.github/workflows/onpush_chmod.yaml +++ b/.github/workflows/onpush_chmod.yaml @@ -18,8 +18,9 @@ jobs: - name: Run script file id: chmod run: | - find . -name *.sh -print0 | xargs -0 chmod +x && \ - grep -rl '#!/' . | xargs chmod +x + for f in `find . -name '*.sh' -o -regex './s?bin/[^/]+' -o -regex './usr/sbin/[^/]+' -o -regex './usr/lib/[^/]+' `;do + ( cd `dirname $f` && git update-index --chmod=+x `basename $f` ) + done shell: bash - name: Create New Pull Request If Needed if: steps.calibre.outputs.markdown != ''