mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
The scripts do not require bash so switch to sh and add shellcheck linting Signed-off-by: James Taylor <jamest@uk.ibm.com>
8 lines
372 B
Bash
Executable file
8 lines
372 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
scversion="v0.8.0" # or "stable", or "latest"
|
|
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv "shellcheck-${scversion}/shellcheck"
|
|
"./shellcheck-${scversion}/shellcheck" --version
|
|
|
|
"./shellcheck-${scversion}/shellcheck" ./test-network-nano-bash/*.sh
|