Skip to content

Commit

Permalink
match http or https download urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mstinaff committed Sep 9, 2014
1 parent 30c19ef commit cdae54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PMS_Updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ findLatest()

webGet "$URL" || exit $?
if [ $VERBOSE = 1 ]; then echo -n Searching $URL for $PMSPATTERN .....; fi
DOWNLOADURL=`grep -o "http:.*$PMSPATTERN" "$DOWNLOADPATH/$SCRAPEFILE"`
DOWNLOADURL=`grep -o "http[s]:.*$PMSPATTERN" "$DOWNLOADPATH/$SCRAPEFILE"`
if [ "x$DOWNLOADURL" = "x" ]; then {
# DOWNLOADURL is zero length, i.e. nothing matched PMSPATTERN. Error and exit
echo Could not find a $PMSPATTERN download link on page $URL
Expand Down

0 comments on commit cdae54f

Please sign in to comment.