From 445dfcbf8fd91ddbe6ef3767cbe990ef831cd8aa Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 8 Dec 2020 09:03:14 +0100 Subject: [PATCH] Run shfmt --- .../proto-signing/scripts/define-proto.sh | 3 +-- packages/proto-signing/scripts/get-proto.sh | 2 +- .../proto-signing/scripts/predefine-proto.sh | 2 +- packages/stargate/scripts/define-proto.sh | 3 +-- packages/stargate/scripts/get-proto.sh | 2 +- packages/stargate/scripts/predefine-proto.sh | 2 +- scripts/add_nonces.sh | 4 ++-- scripts/docs/copy_docs.sh | 12 +++++------ scripts/launchpad/cli.sh | 2 +- scripts/launchpad/generate_template.sh | 8 ++++---- scripts/launchpad/init.sh | 3 +-- scripts/launchpad/manual_start.sh | 6 +++--- scripts/launchpad/start.sh | 6 +++--- scripts/launchpad/stop.sh | 2 +- scripts/simapp/generate_template.sh | 8 ++++---- scripts/simapp/run_simd.sh | 2 +- scripts/simapp/setup.sh | 15 ++++++++++---- scripts/simapp/start.sh | 4 ++-- scripts/simapp/stop.sh | 2 +- scripts/simapp/template/run_simd.sh | 2 +- scripts/simapp/template/setup.sh | 15 ++++++++++---- scripts/socketserver/start.sh | 8 ++++---- scripts/socketserver/stop.sh | 2 +- scripts/tendermint/all_start.sh | 4 ++-- scripts/tendermint/all_stop.sh | 4 ++-- scripts/tendermint/start.sh | 10 ++++------ scripts/tendermint/stop.sh | 2 +- scripts/wasmd/cli.sh | 2 +- scripts/wasmd/generate_template.sh | 20 +++++++++---------- scripts/wasmd/init.sh | 4 +--- scripts/wasmd/start.sh | 4 ++-- scripts/wasmd/stop.sh | 2 +- 32 files changed, 87 insertions(+), 80 deletions(-) diff --git a/packages/proto-signing/scripts/define-proto.sh b/packages/proto-signing/scripts/define-proto.sh index 16735b8b..ac077ff0 100755 --- a/packages/proto-signing/scripts/define-proto.sh +++ b/packages/proto-signing/scripts/define-proto.sh @@ -1,13 +1,12 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" TMP_DIR="./tmp" JS_SOURCE_FILE="$TMP_DIR/codecimpl.js" DEFINITIONS_FILE="$TMP_DIR/codecimpl.d.ts" OUTPUT_DIR="./src/codec/generated/" - yarn pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE" # Remove comments after using them for the .d.ts # Note "When input files are specified on the command line, tsconfig.json files are ignored." (https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) diff --git a/packages/proto-signing/scripts/get-proto.sh b/packages/proto-signing/scripts/get-proto.sh index b9ff708c..64688843 100755 --- a/packages/proto-signing/scripts/get-proto.sh +++ b/packages/proto-signing/scripts/get-proto.sh @@ -1,6 +1,6 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" PROTO_DIR="./proto" COSMOS_DIR="$PROTO_DIR/cosmos" diff --git a/packages/proto-signing/scripts/predefine-proto.sh b/packages/proto-signing/scripts/predefine-proto.sh index 2cc2f5b6..0f23dfc7 100755 --- a/packages/proto-signing/scripts/predefine-proto.sh +++ b/packages/proto-signing/scripts/predefine-proto.sh @@ -1,6 +1,6 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" GENERATED_DIR="./tmp" ROOT_PROTO_DIR="./proto/cosmos/cosmos-sdk" diff --git a/packages/stargate/scripts/define-proto.sh b/packages/stargate/scripts/define-proto.sh index 16735b8b..ac077ff0 100755 --- a/packages/stargate/scripts/define-proto.sh +++ b/packages/stargate/scripts/define-proto.sh @@ -1,13 +1,12 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" TMP_DIR="./tmp" JS_SOURCE_FILE="$TMP_DIR/codecimpl.js" DEFINITIONS_FILE="$TMP_DIR/codecimpl.d.ts" OUTPUT_DIR="./src/codec/generated/" - yarn pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE" # Remove comments after using them for the .d.ts # Note "When input files are specified on the command line, tsconfig.json files are ignored." (https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) diff --git a/packages/stargate/scripts/get-proto.sh b/packages/stargate/scripts/get-proto.sh index b9ff708c..64688843 100755 --- a/packages/stargate/scripts/get-proto.sh +++ b/packages/stargate/scripts/get-proto.sh @@ -1,6 +1,6 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" PROTO_DIR="./proto" COSMOS_DIR="$PROTO_DIR/cosmos" diff --git a/packages/stargate/scripts/predefine-proto.sh b/packages/stargate/scripts/predefine-proto.sh index 5c05e91c..d41d1632 100755 --- a/packages/stargate/scripts/predefine-proto.sh +++ b/packages/stargate/scripts/predefine-proto.sh @@ -1,6 +1,6 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" GENERATED_DIR="./tmp" ROOT_PROTO_DIR="./proto/cosmos/cosmos-sdk" diff --git a/scripts/add_nonces.sh b/scripts/add_nonces.sh index bcc0e29e..aa89abc7 100755 --- a/scripts/add_nonces.sh +++ b/scripts/add_nonces.sh @@ -1,6 +1,6 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" # This must be called from repo root as current directory @@ -10,7 +10,7 @@ for packagedir in ./packages/*; do if [[ -d "$packagedir" ]]; then mkdir -p "$packagedir/nonces" echo "Directory used to trigger lerna package updates for all packages" \ - > "$packagedir/nonces/README.txt" + >"$packagedir/nonces/README.txt" touch "$packagedir/nonces/$NONCE" echo "Added nonce to package $packagedir" fi diff --git a/scripts/docs/copy_docs.sh b/scripts/docs/copy_docs.sh index 0acd357b..359f0db2 100755 --- a/scripts/docs/copy_docs.sh +++ b/scripts/docs/copy_docs.sh @@ -1,6 +1,6 @@ #!/bin/bash set -o errexit -o nounset -o pipefail -command -v shellcheck > /dev/null && shellcheck "$0" +command -v shellcheck >/dev/null && shellcheck "$0" version="latest" out_dir="./docs_deployment" @@ -21,11 +21,11 @@ cp docs/cosmjs-tree.png "$assets_dir" echo '

Package documentation

' echo '

The following packages can be used as libraries.

' echo '