ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Validate External Links/validate_external_links.sh
(Generate patch)

Comparing Validate External Links/validate_external_links.sh (file contents):
Revision 1123 by iritscen, Sat Mar 21 22:08:35 2020 UTC vs.
Revision 1124 by iritscen, Wed Mar 25 01:59:27 2020 UTC

# Line 965 | Line 965 | for LINE in `cat "$LINKS_FILE"`; do
965              SNAPSHOT_URL=${SNAPSHOT_URL#*\"url\": \"} # everything after '"url": "'
966              SNAPSHOT_URL=${SNAPSHOT_URL%%\"*} # everything before '"'
967  
968 +            # Remove the port 80 part that IA often adds to the URL, as it's superfluous
969 +            SNAPSHOT_URL=$(echo $SNAPSHOT_URL | sed 's/:80//')
970 +
971              # Inform the user of the snapshot URL
972              valPrint ts "  IA suggests $SNAPSHOT_URL"
973              valPrint rs "               IA suggests {\field{\*\fldinst{HYPERLINK \"$SNAPSHOT_URL\"}}{\fldrslt $SNAPSHOT_URL}}"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)