mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
tools: libvirt-guests: correctly check shutdown value
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
This commit is contained in:
parent
871f231ea0
commit
cc48360fc9
@ -444,7 +444,7 @@ stop() {
|
|||||||
# last stop was not followed by start
|
# last stop was not followed by start
|
||||||
[ -f "$LISTFILE" ] && return 0
|
[ -f "$LISTFILE" ] && return 0
|
||||||
|
|
||||||
if [ "/x$ON_SHUTDOWN" = xshutdown ]; then
|
if [ "x$ON_SHUTDOWN" = xshutdown ]; then
|
||||||
suspending=false
|
suspending=false
|
||||||
if [ $SHUTDOWN_TIMEOUT -lt 0 ]; then
|
if [ $SHUTDOWN_TIMEOUT -lt 0 ]; then
|
||||||
gettext "SHUTDOWN_TIMEOUT must be equal or greater than 0"
|
gettext "SHUTDOWN_TIMEOUT must be equal or greater than 0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user