From 10b221be188206843f58c47f527cabc5b19e1991 Mon Sep 17 00:00:00 2001 From: Jarno Rankinen Date: Wed, 5 Aug 2020 08:40:31 +0300 Subject: [PATCH] Fixed rebooting after rollback Fixed typo in systemctl reboot call after rollback --- snapsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapsh b/snapsh index 97ddcbb..b2705f1 100755 --- a/snapsh +++ b/snapsh @@ -182,9 +182,9 @@ rollback() { read -n 1 if [[ "${REPLY}" == "y" ]]; then - systemctl restart & exit 0 + systemctl reboot & exit 0 else - printf "\nPlease restart system as soon as possible. Any changes to\nsubvolume ${SOURCE_SUBVOLUME} will not persist after rebooting.\n" + printf "\nPlease restart system as soon as possible. Any changes to subvolume ${SOURCE_SUBVOLUME} will not persist after rebooting.\n" exit 1 fi