Curls a url to a temp file, then views it in mupdf. After mupdf is terminated, delete the file.
8 lines
110 B
Bash
Executable File
8 lines
110 B
Bash
Executable File
#!/bin/sh
|
|
|
|
name="$(echo $1 | awk -F/ '{print $NF}')"
|
|
|
|
curl $1 -o /tmp/$name;
|
|
mupdf /tmp/$name;
|
|
rm /tmp/$name;
|