Skip to content

Commit

Permalink
Fix shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Jul 2, 2024
1 parent 64e5b59 commit 7620b7f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ fi

export IGNORE_EXPERIMENTAL_WARNINGS=1
export DAGSTER_MODULE_NAME=popgetter
DAGSTER_HOME=$(mktemp -d)
if [ $? -ne 0 ]; then
if ! DAGSTER_HOME=$(mktemp -d); then
echo "Failed to create temporary directory for DAGSTER_HOME"
exit 1
fi
Expand All @@ -29,8 +28,7 @@ echo " - ENV: $ENV"
if [ "$ENV" == "prod" ]; then
export AZURE_STORAGE_ACCOUNT=popgetter
export AZURE_CONTAINER=prod
AZURE_DIRECTORY=$(python -c 'import popgetter; print(popgetter.__version__)' 2>/dev/null)
if [ $? -ne 0 ]; then
if ! AZURE_DIRECTORY=$(python -c 'import popgetter; print(popgetter.__version__)' 2>/dev/null); then
echo "Failed to get popgetter version"
exit 1
fi
Expand Down

0 comments on commit 7620b7f

Please sign in to comment.