diff --git a/.gitignore b/.gitignore index bdba958..6d5f1ae 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,10 @@ cabal-dev cabal.sandbox.config cabal.config .stack-work + +### Snap ### +/snap/.snapcraft/ +/stage/ +/parts/ +/prime/ +*.snap diff --git a/README.md b/README.md index d74f998..d9b5f1f 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,10 @@ On Solus: eopkg install shellcheck +From Snap Store: + + snap install --channel=edge shellcheck + From Docker Hub: ```sh diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 0854217..b7f0e96 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -15,6 +15,13 @@ description: | - To point out subtle caveats, corner cases and pitfalls that may cause an advanced user's otherwise working script to fail under future circumstances. + + By default ShellCheck can only check non-hidden files under /home, to make + ShellCheck be able to check files under /media and /run/media you must + connect it to the `removable-media` interface manually: + + # snap connect shellcheck:removable-media + version: git grade: devel confinement: strict @@ -22,7 +29,7 @@ confinement: strict apps: shellcheck: command: usr/bin/shellcheck - plugs: [home] + plugs: [home, removable-media] parts: shellcheck: