move copyrigh and license into "show_version()"

This commit is contained in:
Jérémy Lecour 2019-03-12 23:57:24 +01:00 committed by Jérémy Lecour
parent 42b781db96
commit 6d134e2d89

View file

@ -11,19 +11,20 @@
VERSION="0.5.0.beta3"
show_version() {
printf "%s\n" "evomaintenance version ${VERSION}"
}
show_help() {
cat <<END
$(show_version)
evomaintenance version ${VERSION}
Copyright 2007-2019 Evolix <info@evolix.fr>, Gregory Colpart <reg@evolix.fr>,
Jérémy Lecour <jlecour@evolix.fr> and others.
evomaintenance comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See the GNU General Public Licence for details.
END
}
show_help() {
cat <<END
evomaintenance is a program that helps reporting what you've done on a server
Usage: evomaintenance