rifle handles image urls not exactly the right way
This commit is contained in:
parent
13aef30648
commit
695bc1cf68
1 changed files with 4 additions and 1 deletions
|
@ -1,2 +1,5 @@
|
|||
#!/bin/bash
|
||||
rifle "$1" | grep 'cannot open' && xdg-open "$1"
|
||||
curl -IL "$1" \
|
||||
| grep Content-Type \
|
||||
| tail -n 1 \
|
||||
| grep image && rifle "$1" || xdg-open "$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue