From 5094fbee722a13fdfbb4f0a6c4f5a398e0b2be73 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 6 Feb 2023 23:59:36 +0100 Subject: [PATCH] Typo :| --- lib/lxc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lxc.sh b/lib/lxc.sh index 4188385..65c8d9a 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -84,12 +84,12 @@ LOAD_LXC_SNAPSHOT () { local retry=0 while [[ $retry -lt 5 ]] - then + do LXC_STOP $LXC_NAME || true lxc restore $LXC_NAME $snapname && break || retry+=1 log_warning "Failed to stop LXC and restore snapshot? Retrying in 10 sec ..." sleep 20 - fi + done if [[ $retry -ge 3 ]] then