Compare commits
2 commits
eb1e69b49c
...
d961620bcf
Author | SHA1 | Date | |
---|---|---|---|
|
d961620bcf | ||
|
859ef2e93f |
|
@ -24,23 +24,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y shellcheck
|
apt-get update && apt-get install -y shellcheck
|
||||||
|
|
||||||
- name: Find Shell Scripts
|
- name: Run ShellCheck
|
||||||
id: find-scripts
|
|
||||||
run: |
|
|
||||||
echo "Searching for shell scripts..."
|
|
||||||
find . -name '*.sh' > shell-scripts.list
|
|
||||||
echo "Found the following scripts:"
|
|
||||||
cat shell-scripts.list
|
|
||||||
|
|
||||||
- name: Run ShellCheck in Script Directories
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
echo "Searching for shell scripts..."
|
||||||
|
find . -name '*.sh' -print0 > shell-scripts.list
|
||||||
echo "Running ShellCheck in each script's directory..."
|
echo "Running ShellCheck in each script's directory..."
|
||||||
if [ ! -s shell-scripts.list ]; then
|
|
||||||
echo "No shell scripts found."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
while IFS= read -r script; do
|
while IFS= read -r script; do
|
||||||
echo "Checking $script"
|
echo "Checking $script"
|
||||||
script_dir=$(dirname "$script")
|
script_dir=$(dirname "$script")
|
||||||
|
|
Loading…
Reference in a new issue