Skip to content

Commit d607b76

Browse files
authored
Update close-nexus-repository.sh with accidental global
Signed-off-by: Ashley <73482956+ascopes@users.noreply.github.com>
1 parent f1c6d01 commit d607b76

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/close-nexus-repository.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
###
2323
set -o errexit
2424
set -o nounset
25-
[[ -n ${DEBUG+undef} ]] && set -o xtrace
25+
[[ ${DEBUG} ]] && set -o xtrace
2626

2727
function usage() {
2828
echo "USAGE: ${BASH_SOURCE[0]} [-h] -a <artifactId> -g <groupId> -v <version> -u <userName> -p <password> -s <server>"
@@ -178,6 +178,7 @@ function is-artifact-in-repository() {
178178
}
179179

180180
function find-correct-repository-id() {
181+
local repository_id
181182
for repository_id in $(get-staging-repositories); do
182183
if is-artifact-in-repository "${repository_id}"; then
183184
echo "${repository_id}"

0 commit comments

Comments
 (0)