Compare commits

..

2 commits

Author SHA1 Message Date
ZoopaMario d961620bcf iasdest123
Some checks failed
Lint Bash Scripts / lint-bash (push) Successful in 24s
Check Commit Messages / check-commit-message (pull_request) Failing after 34s
Lint Bash Scripts / lint-bash (pull_request) Successful in 22s
asd
2024-12-29 15:53:33 +01:00
ZoopaMario 859ef2e93f Refactor code to make linter runs succeed
All checks were successful
Check Commit Messages / check-commit-message (pull_request) Successful in 13s
Lint Bash Scripts / lint-bash (pull_request) Successful in 22s
This commit refactors the codebase in order to make the shellcheck
workflow pass.
2024-12-29 15:51:16 +01:00
3 changed files with 5 additions and 15 deletions

View file

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

1
test.sh Normal file
View file

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