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 9ead91966bbc8d2827c7f192cd10bf41d9a2e4ff
parent c10bf3daa234207a4cae271511c238acc5768dd5
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  9 Jan 2020 15:01:50 +0100

Add program namme and 'error:' text to die()

Diffstat:
M.local/bin/template.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/template.sh b/.local/bin/template.sh @@ -22,7 +22,7 @@ show_version() { } die() { - printf '%s\n' "$1" >&2 + printf '%s: error: %s\n' "${0##*/}" "$1" >&2 exit 1 } @@ -46,7 +46,7 @@ while :; do break ;; -?*) - die 'Error: Unknown option specified' + die 'unknown option specified' ;; *) # No more options break