Skip to content

Commit

Permalink
Add support for the 'artifactory' context in the digital-asset repo. (#1
Browse files Browse the repository at this point in the history
)
  • Loading branch information
da-tanabe authored Jan 17, 2025
1 parent 501a1e3 commit 7c3f188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fi

# always run as root
if [ ${EUID} == 0 ]; then
main "${ORB_VERSION}" "${ARTIFACTORY_USER:-}" "${ARTIFACTORY_PASSWORD:-}"
main "${ORB_VERSION}" "${ARTIFACTORY_USER:-}" "${ARTIFACTORY_PASSWORD:-${ARTIFACTORY_TOKEN:-}}"
else
sudo bash -c "$(declare -f main); main \"${ORB_VERSION}\" \"${ARTIFACTORY_USER:-}\" \"${ARTIFACTORY_PASSWORD:-}\""
sudo bash -c "$(declare -f main); main \"${ORB_VERSION}\" \"${ARTIFACTORY_USER:-}\" \"${ARTIFACTORY_PASSWORD:-${ARTIFACTORY_TOKEN:-}}\""
fi

0 comments on commit 7c3f188

Please sign in to comment.