aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/borgbackup
diff options
context:
space:
mode:
Diffstat (limited to 'arch-system/borgbackup')
-rwxr-xr-xarch-system/borgbackup5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch-system/borgbackup b/arch-system/borgbackup
index 580f68b..05ae2ea 100755
--- a/arch-system/borgbackup
+++ b/arch-system/borgbackup
@@ -16,7 +16,10 @@ cleanup() {
}
handle_failure() {
- notify-send -u critical "Backup failed!"
+ if ! [ -t 1 ]; then
+ notify-send -u critical "Backup failed!"
+ fi
+
echo "Backup failed!" >&2
cleanup
exit 2