6 lines
112 B
Bash
Executable File
6 lines
112 B
Bash
Executable File
#!/bin/bash
|
|
curl -IL $1 \
|
|
| grep Content-Type \
|
|
| tail -n 1 \
|
|
| grep image && feh $1 || xdg-open $1
|