From a75eb02c3673976dce8cd20366afdf7be5c1dadd Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 3 Dec 2015 13:42:05 +0100 Subject: [PATCH] Adding checking integrity on tarsnap before deleting. --- zsh_functions | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh_functions b/zsh_functions index d02f3e7..b75a19f 100644 --- a/zsh_functions +++ b/zsh_functions @@ -85,6 +85,7 @@ virtual_env_prompt() { } delete-old-archives() { + sudo tarsnap --fsck archives=$(sudo tarsnap --list-archives | sort) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=("${(@f)del_archives}")