Compare commits
1 commit
166a947497
...
aaf9ecfc1d
Author | SHA1 | Date | |
---|---|---|---|
|
aaf9ecfc1d |
|
@ -23,7 +23,7 @@ jobs:
|
|||
- name: Install ShellCheck
|
||||
run: |
|
||||
apt-get update && apt-get install -y shellcheck
|
||||
|
||||
|
||||
- name: Find Shell Scripts
|
||||
id: find-scripts
|
||||
run: |
|
||||
|
@ -31,10 +31,9 @@ jobs:
|
|||
find . -name '*.sh' -print0 > shell-scripts.list
|
||||
|
||||
- name: Run ShellCheck in Script Directories
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Running ShellCheck in each script's directory..."
|
||||
while IFS= read -r script; do
|
||||
while IFS= read -r -d '' script; do
|
||||
echo "Checking $script"
|
||||
script_dir=$(dirname "$script")
|
||||
script_name=$(basename "$script")
|
||||
|
@ -42,3 +41,4 @@ jobs:
|
|||
(cd "$script_dir" && shellcheck -x "$script_name")
|
||||
done < shell-scripts.list
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue