Skip to content

Commit

Permalink
Thou must comply with the linter
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <sxa@redhat.com>
  • Loading branch information
sxa committed Feb 20, 2024
1 parent b866789 commit 6699c54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tooling/release_download_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ download_release_files() {

# Parse the releases list for the one we want and download everything in it
# shellcheck disable=SC2013
echo `date +%T` : Starting downloads ...
for url in $(grep "${filter}" "${jdk_releases}" | awk -F'"' '/browser_download_url/{print$4}'); do
echo $(date +%T) : Starting downloads ...
grep "${filter}" "${jdk_releases}" | awk -F'"' '/browser_download_url/{print$4}' | while read url; do
# shellcheck disable=SC2046
print_verbose "IVT : Downloading $(basename "$url")"
curl -LORsS -C - "$url"
done
echo `date +%T` : Finished downloads ...
echo $(date +%T) : Finished downloads ...
}

########################################################################################################################
Expand Down
4 changes: 2 additions & 2 deletions tooling/validateSBOMcontent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ echo -n "Checking for JDK source SHA validity: "
GITSHA=$(jq '.components[].properties[] | select(.name|test("OpenJDK Source Commit")) | .value' "$1" | tr -d \" | uniq)
GITREPO=$(echo "$GITSHA" | cut -d/ -f1-5)
GITSHA=$( echo "$GITSHA" | cut -d/ -f7)
if [ -z "$(git ls-remote ${GITREPO} | grep ${GITSHA})" ]; then
if ! git ls-remote "${GITREPO}" | grep "${GITSHA}"; then
echo "ERROR: git sha of source repo not found"
RC=1
fi
Expand All @@ -118,7 +118,7 @@ GITREPO=$(echo "$GITSHA" | cut -d/ -f1-5)
GITSHA=$(echo "$GITSHA" | cut -d/ -f7)
echo "Checking for temurin-build SHA $GITSHA in ${GITREPO}"

if [ -z "$(git ls-remote ${GITREPO} | grep ${GITSHA})" ]; then
if ! git ls-remote "${GITREPO}" | grep "2D${GITSHA}" ]; then
echo "WARNING: temurin-build SHA check failed. This can happen if it was not a tagged level"
if echo "$1" | grep '[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]' 2>/dev/null; then
echo "Ignoring return code as filename looks like a nightly"
Expand Down

0 comments on commit 6699c54

Please sign in to comment.