Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Less strict image URL expansion

  • Loading branch information...
commit a0baafae3f8299a97b4183ccdc40b38f4c93795b 1 parent 5b90f05
Alex Young authored July 26, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  bin/feed_images.sh
8  bin/feed_images.sh
... ...
@@ -1,9 +1,9 @@
1 1
 #!/usr/bin/env bash
2 2
 
3  
-cat _site/feed.xml | sed "s/img src='\/images\/posts/img src='http:\/\/dailyjs.com\/images\/posts/g" > _site/feed_1.xml
4  
-cat _site/feed_1.xml | sed 's/img src="\/images\/posts/img src="http:\/\/dailyjs.com\/images\/posts/g' > _site/feed.xml
  3
+cat _site/feed.xml | sed "s/src='\/images\/posts/src='http:\/\/dailyjs.com\/images\/posts/g" > _site/feed_1.xml
  4
+cat _site/feed_1.xml | sed 's/src="\/images\/posts/src="http:\/\/dailyjs.com\/images\/posts/g' > _site/feed.xml
5 5
 rm _site/feed_1.xml
6 6
 
7  
-cat _site/atom.xml | sed "s/img src='\/images\/posts/img src='http:\/\/dailyjs.com\/images\/posts/g" > _site/atom_1.xml
8  
-cat _site/atom_1.xml | sed 's/img src="\/images\/posts/img src="http:\/\/dailyjs.com\/images\/posts/g' > _site/atom.xml
  7
+cat _site/atom.xml | sed "s/src='\/images\/posts/src='http:\/\/dailyjs.com\/images\/posts/g" > _site/atom_1.xml
  8
+cat _site/atom_1.xml | sed 's/src="\/images\/posts/src="http:\/\/dailyjs.com\/images\/posts/g' > _site/atom.xml
9 9
 rm _site/atom_1.xml

0 notes on commit a0baafa

Please sign in to comment.
Something went wrong with that request. Please try again.