Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
fix: script now is correctly interpreting input variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DuMaM committed Apr 19, 2023
1 parent 4c4cba6 commit d0da91b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ if [[ -f "${MVN_SETTINGS_PATH}" ]]; then
mv "${MVN_SETTINGS_PATH}" "${MVN_SETTINGS_PATH}.bak${BACKUP_DATE}"
fi

if [[ -n "${ARTIFACTORY_PASS}" ]]; then
if [[ -z "${ARTIFACTORY_PASS}" ]]; then
echo "Please define variable ARTIFACTORY_PASS"
exit 1
fi

if [[ -n "${ARTIFACTORY_USER}" ]]; then
if [[ -z "${ARTIFACTORY_USER}" ]]; then
echo "Please define variable ARTIFACTORY_USER"
exit 1
fi
Expand Down

0 comments on commit d0da91b

Please sign in to comment.