Skip to content

Commit

Permalink
Move print_verbose back to release_download_test, it should not belon…
Browse files Browse the repository at this point in the history
…g in a common script as it is too specific for the validation script.
  • Loading branch information
netomi committed Nov 8, 2023
1 parent 911000d commit 01ad870
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tooling/common_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ if test -t 1; then
fi
fi

print_verbose() {
if [ "$VERBOSE" = "true" ]; then
echo "${BOLD}$(date +%T) : $*${NORMAL}" 1>&2;
fi
}

print_error() {
echo "${RED}ERROR:${NORMAL} $*" 1>&2;
}
Expand Down
11 changes: 11 additions & 0 deletions tooling/release_download_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ parse_options() {
fi
}

########################################################################################################################
#
# A utility function to print verbose output.
#
########################################################################################################################
print_verbose() {
if [ "$VERBOSE" = "true" ]; then
echo "${BOLD}$(date +%T) : $*${NORMAL}" 1>&2;
fi
}

########################################################################################################################
#
# Extract JDK major version from a specified tag.
Expand Down

0 comments on commit 01ad870

Please sign in to comment.