configuration/local/bin/open.sh
2015-11-24 20:40:30 +01:00

6 lines
120 B
Bash
Executable File

#!/bin/bash
curl -IL "$1" \
| grep Content-Type \
| tail -n 1 \
| grep image && rifle "$1" || xdg-open "$1"