Skip to content

Commit

Permalink
MNT: tweak verbosity conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Jun 14, 2023
1 parent f9c7cac commit af6243d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# To run as:
# curl https://raw.githubusercontent.com/Exabyte-io/api-examples/${GIT_BRANCH}/scripts/env.sh | bash

set -vxeuo pipefail
set -euo pipefail

GIT_BRANCH="${GIT_BRANCH:-'dev'}"
GIT_BRANCH="${GIT_BRANCH:-dev}"
REPO_NAME="api-examples"
VERBOSE="${EXABYTE_API_EXAMPLES_VERBOSE:-''}"
IS_COLAB="${COLAB_JUPYTER_IP:-''}"
VERBOSE="${EXABYTE_API_EXAMPLES_VERBOSE:-}"
IS_COLAB="${COLAB_JUPYTER_IP:-}"

if [ ! -z "${VERBOSE}" ]; then
set -vxeuo pipefail
stdout="/dev/stdout"
else
stdout="/dev/null"
Expand Down

0 comments on commit af6243d

Please sign in to comment.