comparison .bash_overrides @ 302:1a177f9b51d4

follow the damn redirects
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 14 May 2013 16:21:34 -0700
parents f890a12d8cf5
children fac01a1bcedf
comparison
equal deleted inserted replaced
301:2a1eeec1b4ea 302:1a177f9b51d4
97 97
98 function lsdiff { 98 function lsdiff {
99 99
100 if expr "$1" : 'http[s]\?://.*' &> /dev/null 100 if expr "$1" : 'http[s]\?://.*' &> /dev/null
101 then 101 then
102 curl "$1" 2> /dev/null | command lsdiff 102 curl --location "$1" 2> /dev/null | command lsdiff
103 else 103 else
104 lsdiff "$1" 104 lsdiff "$1"
105 fi 105 fi
106 106
107 } 107 }