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 a3b5067820366dbcdab058ae23e22a201a154942
parent 7e96d80dac269fef9e53dc76e56f588fb1d771a5
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 15 Jan 2020 11:40:31 +0100

Small style changes

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

diff --git a/.local/bin/template.sh b/.local/bin/template.sh @@ -1,9 +1,10 @@ #!/bin/sh -# blank template for shell scripts +# requirements: none version=0.1.0 -show_help() { +show_help() +{ echo "usage: ${0##*/} [OPTIONS] COMMAND ..." echo "short description here." echo @@ -14,14 +15,16 @@ show_help() { echo " -- do not consider any following args as options" } -show_version() { +show_version() +{ echo "${0##*/} version $version" - echo "Licensed under the ISC License" + echo "licensed under the ISC License" echo "written by Anders Damsgaard, anders@adamsgaard.dk" echo "https://src.adamsgaard.dk/dotfiles" } -die() { +die() +{ printf '%s: error: %s\n' "${0##*/}" "$1" >&2 exit 1 }