Skip to content

Distinguished between manual and automated install #7

Distinguished between manual and automated install

Distinguished between manual and automated install #7

Workflow file for this run

name: ShellCheck
on:
pull_request:
branches: ["*"]
push:
branches:
- master
jobs:
shellcheck:
name: ShellCheck
runs-on: [ubuntu-latest]
defaults:
run:
shell: bash
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt update && sudo apt install shellcheck -y
- name: Run ShellCheck
run: |
shellcheck *.sh
if [ $? -ne 0 ]; then
echo "ShellCheck Detected Errors!!!"
exit 1
fi
- name: Install shfmt
run: |
sudo apt install shfmt -y
- name: Format Shell Scripts
run: |
find . -name "*.sh" -exec shfmt -w -i 2 {} \;