Merge pull request #11 from 0ranki/dev

Fixed rebooting after rollback
This commit is contained in:
Jarno Rankinen 2020-08-05 08:42:06 +03:00 committed by GitHub
commit c6b459dd48
1 changed files with 2 additions and 2 deletions

4
snapsh
View File

@ -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