summaryrefslogtreecommitdiff
path: root/xii
diff options
context:
space:
mode:
Diffstat (limited to 'xii')
-rwxr-xr-xxii5
1 files changed, 2 insertions, 3 deletions
diff --git a/xii b/xii
index dc4a620..c79e967 100755
--- a/xii
+++ b/xii
@@ -8,13 +8,12 @@
dir=/tmp/$RANDOM
mkdir $dir
-grep '^X-Image: ' |
-sed 's/^X-Image: //' |
+sed -n 's/^X-Image: //p' |
while read url
do
curl "$url" > $dir/$RANDOM
done
# Display images and delete them afterwards
-$VIEWER $dir/* < /dev/tty
+eval $VIEWER $dir/* < /dev/tty
rm -r $dir