Merge pull request #1164 from Lin-Buo-Ren/improve-snap-package

Improve snap packaging
This commit is contained in:
Vidar Holen 2018-03-29 11:49:26 -07:00 committed by GitHub
commit de257a6cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

7
.gitignore vendored
View File

@ -13,3 +13,10 @@ cabal-dev
cabal.sandbox.config cabal.sandbox.config
cabal.config cabal.config
.stack-work .stack-work
### Snap ###
/snap/.snapcraft/
/stage/
/parts/
/prime/
*.snap

View File

@ -139,6 +139,10 @@ On Solus:
eopkg install shellcheck eopkg install shellcheck
From Snap Store:
snap install --channel=edge shellcheck
From Docker Hub: From Docker Hub:
```sh ```sh

View File

@ -15,6 +15,13 @@ description: |
- To point out subtle caveats, corner cases and pitfalls that may cause an - To point out subtle caveats, corner cases and pitfalls that may cause an
advanced user's otherwise working script to fail under future advanced user's otherwise working script to fail under future
circumstances. 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 version: git
grade: devel grade: devel
confinement: strict confinement: strict
@ -22,7 +29,7 @@ confinement: strict
apps: apps:
shellcheck: shellcheck:
command: usr/bin/shellcheck command: usr/bin/shellcheck
plugs: [home] plugs: [home, removable-media]
parts: parts:
shellcheck: shellcheck: