3330c7deec180bf7ca82a38455c77ee04b51a73f mspeir Fri Apr 7 07:05:46 2017 -0700 removing testing echo statement, no redmine diff --git src/utils/qa/getPubHubContact.sh src/utils/qa/getPubHubContact.sh index 50cb67a..d1af503 100755 --- src/utils/qa/getPubHubContact.sh +++ src/utils/qa/getPubHubContact.sh @@ -79,31 +79,30 @@ while read url label do # Save hub shortLabel as a file so we can use it in a filename later label=$(echo $label | sed -e 's/ /_/g') # Make name for hub.txt output file that includes hub shortLabel hubFile="$base/hubFiles/$label.hub.txt" wget -t 5 -O $hubFile $url &> /dev/null || true # Extract email from hub.txt file we saved email=$(egrep "^email" $hubFile) || true # If email is empty, then wget failed or hub is down if [[ $email == "" ]] then - echo "here2" # Attempt to get hub.txt file w/ curl curl --retry 5 $url -o $hubFile &> /dev/null || true # Extract email from hub.txt file we saved email=$(grep "^email" $hubFile) || true # If email is still empty, hub is likely down and # we want to use the last email we have as contact email if [[ $email == "" ]] && [ -e $contactFile.old ] then email=$(grep "$url" $contactFile.old.temp | awk '{print $4" "$5}') || true fi fi # Create hyperlinks to hub.txt files hubLink="<a href=\"$url\" target=\"_blank\">$label</a>"