Skip to content

Commit

Permalink
Simplify Nexus path determination
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Oct 22, 2024
1 parent d507a1c commit e5f9cba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ export ALLOWLIST_DIR=/allowlists
export PYPI_ALLOWLIST="$ALLOWLIST_DIR"/pypi.allowlist
export CRAN_ALLOWLIST="$ALLOWLIST_DIR"/cran.allowlist

if [ -z "$NEXUS_PATH" ]; then
export CONNECT_ARGS="--admin-password $NEXUS_ADMIN_PASSWORD --nexus-host $NEXUS_HOST --nexus-port $NEXUS_PORT"
else
export CONNECT_ARGS="--admin-password $NEXUS_ADMIN_PASSWORD --nexus-host $NEXUS_HOST --nexus-port $NEXUS_PORT --nexus-path $NEXUS_PATH"
export CONNECT_ARGS="--admin-password $NEXUS_ADMIN_PASSWORD --nexus-host $NEXUS_HOST --nexus-port $NEXUS_PORT"
if [ -n "$NEXUS_PATH" ]; then
export CONNECT_ARGS="$CONNECT_ARGS --nexus-path $NEXUS_PATH"
fi

timestamp() {
Expand Down

0 comments on commit e5f9cba

Please sign in to comment.