dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud
GNU General Public License v2.0
42 stars 3 forks source link

Let `file` check existence of images #40

Closed dshoreman closed 5 years ago

dshoreman commented 5 years ago

Checking for "$PWD/$file" causes root-relative paths to file. The file command's -E option will force it to issue an error message and exit, which is arguably a much better way of doing things.

Also updates cache_name function to use basename instead of full path.

Fixes #22.