dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 7371c4481f57d131cc6eeb95ddc4e3f3dfc9af3a
parent 221cd8cd155e2f6676a35f0b78f98df089d84103
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 10 Dec 2019 15:56:56 +0100

Fix error reporting with unknown file types

Diffstat:
M.local/bin/xdg-open | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.local/bin/xdg-open b/.local/bin/xdg-open @@ -61,8 +61,7 @@ handle_target() { libreoffice "$1" >/dev/null 2>&1 & return 0;; *) - (>2 printf "File type %s not supported\n" $mime_type) - exit 1;; + die "error: File type $mime_type is not supported" esac else $BROWSER "$1"; @@ -88,7 +87,7 @@ while :; do break ;; -?*) - die 'Error: Unknown option specified' + die 'error: Unknown option specified' ;; *) # No more options break