tools: libvirt-guests: correctly check shutdown value

The variable cleanup introduced a typo.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 08071ec0f1
Reported-by: Bronek Kozicki
Closes: https://gitlab.com/libvirt/libvirt/-/issues/27
This commit is contained in:
Ján Tomko 2020-06-03 13:53:13 +02:00
parent 871f231ea0
commit cc48360fc9

View 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"