--- Validate External Links/validate_external_links.sh 2020/03/21 22:08:35 1123 +++ Validate External Links/validate_external_links.sh 2020/03/25 01:59:27 1124 @@ -965,6 +965,9 @@ for LINE in `cat "$LINKS_FILE"`; do SNAPSHOT_URL=${SNAPSHOT_URL#*\"url\": \"} # everything after '"url": "' SNAPSHOT_URL=${SNAPSHOT_URL%%\"*} # everything before '"' + # Remove the port 80 part that IA often adds to the URL, as it's superfluous + SNAPSHOT_URL=$(echo $SNAPSHOT_URL | sed 's/:80//') + # Inform the user of the snapshot URL valPrint ts " IA suggests $SNAPSHOT_URL" valPrint rs " IA suggests {\field{\*\fldinst{HYPERLINK \"$SNAPSHOT_URL\"}}{\fldrslt $SNAPSHOT_URL}}"