diff options
author | Erich Eckner <git@eckner.net> | 2016-10-11 13:32:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-10-11 14:24:11 +0200 |
commit | 903564349edb8e2ef457a5dbf09d3ed9c9c206f5 (patch) | |
tree | ef7a476c37e967d4df02ed21d5b38d4c9944d09e /lastBackups.in | |
parent | 42b083a197c3d29cce74c22606e16317f18f808b (diff) | |
download | hardlinkedBackups-903564349edb8e2ef457a5dbf09d3ed9c9c206f5.tar.xz |
alle manpages sollten jetzt funktionieren
Diffstat (limited to 'lastBackups.in')
-rwxr-xr-x | lastBackups.in | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lastBackups.in b/lastBackups.in index 6366058..e0cefd2 100755 --- a/lastBackups.in +++ b/lastBackups.in @@ -2,7 +2,26 @@ # lastBackups version #VERSION# -. #ETCDIR#/backup.conf +[ -r "#ETCDIR#/backup.conf" ] && \ + . "#ETCDIR#/backup.conf" + +if [ $# -eq 1 ] +then + if [ "$1" == "--help" ] + then + >&2 echo \ +'Usage: lastBackups +Show information about date of last backups and warn about outdated ones. + +Options: +#HELPTEXT# #' + exit 0 + elif [ "$1" == "--version" ] + then + >&2 echo '#VERSION#' + exit 0 + fi +fi unset namen unset veraltet |