mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-18 17:41:58 +01:00
Remove checking subdir and suffix for bin (#51)
This commit is contained in:
parent
0ef4a19bfe
commit
2e033faa4a
18
action.yaml
18
action.yaml
@ -164,24 +164,6 @@ runs:
|
|||||||
done
|
done
|
||||||
echo "::set-output name=filepaths::${filepaths[@]}"
|
echo "::set-output name=filepaths::${filepaths[@]}"
|
||||||
|
|
||||||
- name: Check bin subdirs
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if find "${{ inputs.scandir }}" ${{ steps.exclude.outputs.excludes }} -path '*bin/*/*' -type f -perm /111 -print |
|
|
||||||
grep .
|
|
||||||
then
|
|
||||||
echo "::warning:: subdirectories of bin directories are not usable via PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Check no suffix in PATH
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if find "${{ inputs.scandir }}" ${{ steps.exclude.outputs.excludes }} -path '*bin/*' -name '*.*' -type f -perm /111 -perm /444 -print |
|
|
||||||
grep .
|
|
||||||
then
|
|
||||||
echo "::warning:: programs in PATH should not have a filename suffix"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run the file check
|
- name: Run the file check
|
||||||
id: check
|
id: check
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user