17.5.2025 Saturday 22:41
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# set -x
|
||||
|
||||
[[ "$0" == /* ]] && typeset -r PRG=$0 || typeset -r PRG=$PWD/$0
|
||||
|
||||
BINDIR=$(dirname "$PRG")
|
||||
@@ -13,13 +15,20 @@ source "${BINDIR}/lib/logging.sh"
|
||||
|
||||
TARGET="${1-11.4.81.0.1.195.1}"
|
||||
|
||||
URL="http://grt.us.oracle.com/grt/webservice/grtList/?gate=20&show=All&gateName=S11.4-SRU&status=1&target=${TARGET}"
|
||||
# log::info "TARGET:${TARGET}"
|
||||
|
||||
out=$($W3M "$URL" -M -cols 400 -graph -dump | $AWK '/^Details/ {found=1; next} found && NF')
|
||||
URL="http://grt.us.oracle.com/grt/webservice/grtList/?gate=240&show=All&gateName=S11.4-SRU&status=1&target=${TARGET}"
|
||||
|
||||
# log::debug $URL
|
||||
|
||||
output=$(/opt/homebrew/bin/w3m "$URL" -M -cols 400 -graph -dump 2>&1)
|
||||
|
||||
out=$(echo "$output" | awk '/^Details.*Consolidation/ {found=1; next} found')
|
||||
|
||||
if [[ -z "$out" ]];
|
||||
then
|
||||
log::info "There are no queued RTIs for \"${TARGET}\". Nothing to do..."
|
||||
# log::debug "output: ### $out ###"
|
||||
# log::info "There are no queued RTIs for \"${TARGET}\". Nothing to do..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user