From d0de8d5b2b0dc3a304406b47e6046e0c42bbd3ec Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 30 Jan 2020 19:28:23 +0100 Subject: [PATCH] Fix up spellcheck errors --- scripts/cosm/cli.sh | 3 ++- scripts/{ => cosm}/env | 2 +- scripts/cosm/start.sh | 4 ++++ scripts/cosm/stop.sh | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) rename scripts/{ => cosm}/env (76%) diff --git a/scripts/cosm/cli.sh b/scripts/cosm/cli.sh index 59eeefe9..804f8f31 100755 --- a/scripts/cosm/cli.sh +++ b/scripts/cosm/cli.sh @@ -2,8 +2,9 @@ set -o errexit -o nounset -o pipefail command -v shellcheck > /dev/null && shellcheck "$0" - SCRIPT_DIR="$(realpath "$(dirname "$0")")" +# shellcheck source=./env +# shellcheck disable=SC1091 source "$SCRIPT_DIR"/env # TODO: make this run as UID? Does this matter? diff --git a/scripts/env b/scripts/cosm/env similarity index 76% rename from scripts/env rename to scripts/cosm/env index bfa7e4c0..544cf984 100644 --- a/scripts/env +++ b/scripts/cosm/env @@ -2,4 +2,4 @@ REPOSITORY="cosmwasm/wasmd-demo" VERSION="latest" -BLOCKCHAIN_CONTAINER_NAME="wasmd" +CONTAINER_NAME="wasmd" diff --git a/scripts/cosm/start.sh b/scripts/cosm/start.sh index 57932107..98f04ff8 100755 --- a/scripts/cosm/start.sh +++ b/scripts/cosm/start.sh @@ -3,8 +3,12 @@ set -o errexit -o nounset -o pipefail command -v shellcheck > /dev/null && shellcheck "$0" SCRIPT_DIR="$(realpath "$(dirname "$0")")" +# shellcheck source=./env +# shellcheck disable=SC1091 source "$SCRIPT_DIR"/env +echo "$CONTAINER_NAME" + TMP_DIR=$(mktemp -d "${TMPDIR:-/tmp}/gaia.XXXXXXXXX") chmod 777 "$TMP_DIR" echo "Using temporary dir $TMP_DIR" diff --git a/scripts/cosm/stop.sh b/scripts/cosm/stop.sh index 773b5eb8..a318ce45 100755 --- a/scripts/cosm/stop.sh +++ b/scripts/cosm/stop.sh @@ -3,6 +3,8 @@ set -o errexit -o nounset -o pipefail command -v shellcheck > /dev/null && shellcheck "$0" SCRIPT_DIR="$(realpath "$(dirname "$0")")" +# shellcheck source=./env +# shellcheck disable=SC1091 source "$SCRIPT_DIR"/env echo "Killing Cosmos container..."