Compare commits

..

1 commit

Author SHA1 Message Date
ZoopaMario eb1e69b49c Refactor code to make linter runs succeed
Some checks failed
Lint Bash Scripts / lint-bash (push) Failing after 27s
Check Commit Messages / check-commit-message (pull_request) Successful in 15s
Lint Bash Scripts / lint-bash (pull_request) Failing after 22s
This commit refactors the codebase in order to make the shellcheck
workflow pass.
2024-12-29 15:57:54 +01:00
3 changed files with 15 additions and 5 deletions

View file

@ -24,12 +24,23 @@ jobs:
run: |
apt-get update && apt-get install -y shellcheck
- name: Run ShellCheck
shell: bash
- name: Find Shell Scripts
id: find-scripts
run: |
echo "Searching for shell scripts..."
find . -name '*.sh' -print0 > shell-scripts.list
find . -name '*.sh' > shell-scripts.list
echo "Found the following scripts:"
cat shell-scripts.list
- name: Run ShellCheck in Script Directories
shell: bash
run: |
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
echo "Checking $script"
script_dir=$(dirname "$script")

View file

@ -1 +0,0 @@
New file invalid