]> xenbits.xensource.com Git - libvirt.git/commitdiff
tools: libvirt-guests: correctly check shutdown value
authorJán Tomko <jtomko@redhat.com>
Wed, 3 Jun 2020 11:53:13 +0000 (13:53 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 3 Jun 2020 11:56:20 +0000 (13:56 +0200)
The variable cleanup introduced a typo.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 08071ec0f113bb1fe8dcc263cb6bf87529e8b76b
Reported-by: Bronek Kozicki
Closes: https://gitlab.com/libvirt/libvirt/-/issues/27
tools/libvirt-guests.sh.in

index 7af24dab3bb7261ce157591786436123984530af..534c4d5e0fb98a621cccff5f27eb5ba1fac22c1f 100644 (file)
@@ -444,7 +444,7 @@ stop() {
     # last stop was not followed by start
     [ -f "$LISTFILE" ] && return 0
 
-    if [ "/x$ON_SHUTDOWN" = xshutdown ]; then
+    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
         suspending=false
         if [ $SHUTDOWN_TIMEOUT -lt 0 ]; then
             gettext "SHUTDOWN_TIMEOUT must be equal or greater than 0"