From 1ceacc5b22bbda4126bd357d56b9c71778b932c8 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 8 Jan 2023 17:27:53 +0100 Subject: [PATCH] Add error message if no suitable image viewer found --- uoeia | 1 + 1 file changed, 1 insertion(+) diff --git a/uoeia b/uoeia index 7619987..7e202c9 100755 --- a/uoeia +++ b/uoeia @@ -93,6 +93,7 @@ get_imageviewer() { } main() { + [ -n "$imageviewer" ] || die "Error: Could not find a suitable image viewer, set one manually with the '-v' option." command -v "${imageviewer}" 1>/dev/null 2>&1 || die "Error: Opening images in ${imageviewer} requires ${imageviewer} to be installed and and on the path." trap cleanup EXIT