mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
kpatch: update the kpatch version and the man
This commit is contained in:
parent
4e41f39853
commit
a44fbf3f8b
@ -25,6 +25,7 @@
|
||||
|
||||
INSTALLDIR=/var/lib/kpatch
|
||||
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
|
||||
VERSION="0.1.9"
|
||||
|
||||
usage_cmd() {
|
||||
printf ' %-20s\n %s\n' "$1" "$2" >&2
|
||||
@ -48,6 +49,8 @@ usage () {
|
||||
usage_cmd "info <module>" "show information about a patch module"
|
||||
echo >&2
|
||||
usage_cmd "list" "list installed patch modules"
|
||||
echo >&2
|
||||
usage_cmd "version" "display the kpatch version"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -276,6 +279,10 @@ case "$1" in
|
||||
usage
|
||||
;;
|
||||
|
||||
"version"|"-v"|"--version")
|
||||
echo "$VERSION"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "subcommand $1 not recognized"
|
||||
usage
|
||||
|
@ -38,6 +38,9 @@ info <module>
|
||||
list
|
||||
list installed patch modules
|
||||
|
||||
version
|
||||
display the kpatch version
|
||||
|
||||
.SH SEE ALSO
|
||||
kpatch-build(1)
|
||||
.SH BUGS
|
||||
|
Loading…
Reference in New Issue
Block a user