This commit is contained in:
Abdullah Barhoum 2022-09-06 18:59:31 +02:00 committed by AbdBarho
parent fe2316ef48
commit d1f7871aab

View file

@ -5,13 +5,15 @@ on: [push]
jobs:
check:
runs-on: ubuntu-latest
name: Check all sh
steps:
- uses: actions/checkout@v3
- run: |
shopt -s globstar
for file in **/*.sh; do
if [ -f "${file}" ] && [ -r "${file}" ] && [ ! -x "${file}" ]; then
echo "$file" is not executable;
exit 1;
done
done
- shell: run
run: |
shopt -s globstar;
for file in **/*.sh; do
if [ -f "${file}" ] && [ -r "${file}" ] && [ ! -x "${file}" ]; then
echo "$file" is not executable;
exit 1;
fi
done