Skip to content

Commit

Permalink
Jobs: Check the environment name to make sure that we are avoiding do…
Browse files Browse the repository at this point in the history
…uble dots in the VENV_PATH
  • Loading branch information
Juan Puerto committed Feb 14, 2024
1 parent 78ec2ef commit ad9c20d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
### TODO: Modify this to make sure we aren't doing double dots in the name
VENV_PATH="{{ workspace_full_path }}/.{{ environment_name }}_venv"
[[ {{ environment_name }} == .* ]] && ENV_NAME="{{ environment_name }}" || ENV_NAME=".{{ environment_name }}"
VENV_PATH="{{ workspace_full_path }}/${ENV_NAME}_venv"

echo "STARTED @ $(date)"
### Environment initialization
Expand Down

0 comments on commit ad9c20d

Please sign in to comment.