From 85df2bad82f5ab05fc8b216e5476a671a54c5a26 Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 10 May 2021 10:47:40 +0200 Subject: [PATCH] fixes --- files/bin/void-snapshot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/bin/void-snapshot b/files/bin/void-snapshot index b8d801a..3187f1e 100644 --- a/files/bin/void-snapshot +++ b/files/bin/void-snapshot @@ -60,13 +60,17 @@ fi if ! update-grub 2> /dev/null; then echo update-grub failed + exit fi if [ "${cron}" ]; then test -f /etc/void-snapshot.cfg && . /etc/void-snapshot.cfg if [ "${REGULAR_SNAPSHOT_HOME}" ]; then mkdir -p "/var/lib/backup/quelle/rootfs/system/snapshots/${word}" - btrbk --config="${cfg}" --quiet run "${word}home" + if ! btrbk --config="${cfg}" --quiet run "${word}home"; then + btrbk --config="${cfg}" --quiet clean "${word}home" + echo "fail: btrbk --config=${cfg} --quiet clean ${word}home" + exit fi fi