mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
15 lines
368 B
Bash
15 lines
368 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
set -u
|
||
|
set -x
|
||
|
set -o pipefail
|
||
|
|
||
|
shellcheck --version
|
||
|
# lint all *.sh files
|
||
|
find . -type f -name '*.sh' ! -path './node_modules/*' -print0 | xargs -0 shellcheck
|
||
|
# lint all .scripts in package.json
|
||
|
# shellcheck disable=SC2016
|
||
|
list=$(jq -r '.scripts | keys[] as $key | .[$key]' < package.json)
|
||
|
printf "#!/bin/bash\n%s\n" "$list" | shellcheck -
|