dotfiles

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

commit d5d6d9215c73cf68fad1feffb6cb41cb4fd8357f
parent 745cc451f6291c9b2adbc2657ccdf978331a2e68
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 17 Feb 2021 22:12:55 +0100

backup: remove long options and version option

Diffstat:
M.local/bin/backup | 18+++---------------
1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/.local/bin/backup b/.local/bin/backup @@ -5,16 +5,8 @@ show_help() { echo "is a wrapper for rsync backing up /home and /etc to TARGET" echo echo "OPTIONS are one or more of the following:" - echo " -h, --help show this message" - echo " -v, --version show version and license information" - echo " -- do not consider any following args as options" -} - -show_version() { - echo "${0##*/} version $version" - echo "Licensed under the GNU Public License, v3+" - echo "written by Anders Damsgaard, anders@adamsgaard.dk" - echo "https://gitlab.com/admesg/dotfiles" + echo " -h show this message" + echo " -- do not consider any following args as options" } die() { @@ -41,14 +33,10 @@ backup_home_etc() { while :; do case "$1" in - -h|-\?|--help) + -h) show_help exit 0 ;; - -v|--version) - show_version - exit 0 - ;; --) # end all options shift break