From e6b681832fbef84c4f882dc10aa9bf0a2cd101dc Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 7 Dec 2023 17:41:58 +0000 Subject: [PATCH] Fix shellcheck issues --- docker/tna-python-dev/bin/dev | 3 ++- docker/tna-python-dev/bin/format | 2 +- docker/tna-python-dev/bin/upgrade | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/tna-python-dev/bin/dev b/docker/tna-python-dev/bin/dev index 9a74a64..0d82a62 100755 --- a/docker/tna-python-dev/bin/dev +++ b/docker/tna-python-dev/bin/dev @@ -2,10 +2,11 @@ python -m pip install --quiet black==23.7.0 flake8==6.1.0 isort==5.12.0 +cd /app || return + . "$HOME/.nvm/nvm.sh" if [ -f "/app/.nvmrc" ] then - cd /app nvm install else nvm use lts/iron diff --git a/docker/tna-python-dev/bin/format b/docker/tna-python-dev/bin/format index fe35a2e..644edef 100755 --- a/docker/tna-python-dev/bin/format +++ b/docker/tna-python-dev/bin/format @@ -1,6 +1,6 @@ #!/bin/bash -cd /app +cd /app || return echo "Running isort..." isort --settings-file /home/app/.isort.cfg /app --overwrite-in-place diff --git a/docker/tna-python-dev/bin/upgrade b/docker/tna-python-dev/bin/upgrade index b6bf770..3d8b4bd 100755 --- a/docker/tna-python-dev/bin/upgrade +++ b/docker/tna-python-dev/bin/upgrade @@ -1,6 +1,6 @@ #!/bin/bash -cd /app +cd /app || return poetry update