canonical / test-strict-confinement

0 stars 0 forks source link

Add git workflow to do shell check #9

Closed rickwu666666 closed 1 month ago

rickwu666666 commented 1 month ago

Add git workflow to do shell check

Test result with putting wrong format shell script.

Run sh_files=$(find . -name "*.sh")

In ./bin/test_shell.sh line 1:
#/bin/bash
 ^-- SC1113 (error): Use #!, not just #, for the shebang.

For more information:
  https://www.shellcheck.net/wiki/SC[11](https://github.com/canonical/test-strict-confinement/actions/runs/10346465409/job/28635046082?pr=9#step:4:12)13 -- Use #!, not just #, for the sheba...
Error: Process completed with exit code [12](https://github.com/canonical/test-strict-confinement/actions/runs/10346465409/job/28635046082?pr=9#step:4:13)3.