Commit 1b66211e authored by Harald Sitter's avatar Harald Sitter

download and diff so you can also inspect the versions side by side

often it is hard to find the actually divergent bits from just the diff
parent 89c133f5
......@@ -18,12 +18,16 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
set -ex
TMPDIR=`mktemp -d`
trap "{ cd -; rm -rf $TMPDIR; exit 255; }" SIGINT
curl -H "Content-Type:text/plain" "$1" > $TMPDIR/1.png
curl -H "Content-Type:text/plain" "$2" > $TMPDIR/2.png
compare \
<( curl -H "Content-Type:text/plain" "$1" ) \
<( curl -H "Content-Type:text/plain" "$2" ) \
$TMPDIR/1.png $TMPDIR/2.png \
-compose src \
/tmp/diff.png
$TMPDIR/diff.png
gwenview /tmp/diff.png
dolphin $TMPDIR
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment