Compare commits

..

1 commit

Author SHA1 Message Date
ZoopaMario aaf9ecfc1d Refactor code to make linter runs succeed
All checks were successful
Lint Bash Scripts / lint-bash (push) Successful in 28s
Check Commit Messages / check-commit-message (pull_request) Successful in 14s
Lint Bash Scripts / lint-bash (pull_request) Successful in 21s
This commit refactors the codebase in order to make the shellcheck
workflow pass.
2024-12-29 15:40:33 +01:00

View file

@ -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