From 2cd38b47b7accc2ed9a76173e1684c6bdf4485bf Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Tue, 2 Aug 2016 08:37:40 +0300 Subject: [PATCH] just making sure nothing gets deleted --- files/archive-subfolders | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/archive-subfolders b/files/archive-subfolders index 3237238..82284d4 100755 --- a/files/archive-subfolders +++ b/files/archive-subfolders @@ -105,7 +105,8 @@ trap - 9 15 echo 'Compressing..' IFS=" " read -a SLEEPS <<< '0.1 0.5 1 2 3 4 5' trap killtrap 9 15 - +set -e +set -o pipefail for d in "${REALFOLDERS[@]}"; do DU=$( fastdu "$d.tar" ) DUh=$( fastdu -h "$d.tar" )