Skip to content

Commit

Permalink
Update cli-html.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinguy authored Nov 12, 2024
1 parent 2fdcc51 commit 52e8bca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cli-html.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
export CODE_DIR=${PWD}
cd $CODE_DIR
# Ensure CODE_DIR is defined as the current directory
export CODE_DIR=$(pwd)
cd "$CODE_DIR"

# Set environment variables for Docker
ENV_VARS="-e CODE_DIR -e OPENAI_GPT_API"
VOLUME_MOUNT="-v ${PWD}:${PWD}"
# Set environment variables and Docker options
ENV_VARS="-e CODE_DIR=$CODE_DIR -e OPENAI_GPT_API"
VOLUME_MOUNT="-v ${CODE_DIR}:${CODE_DIR}"
DOCKER_IMAGE="tcosolutions/betterscan-worker-cli:latest"
SAFE_DIR_CMD="git config --global --add safe.directory $CODE_DIR"
GIT_BRANCH_CMD="git rev-parse --abbrev-ref HEAD"
Expand Down

0 comments on commit 52e8bca

Please sign in to comment.