From 5bdb6ae773378044801e8ea8d26b60c0320f6510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Fri, 22 Jul 2016 22:03:16 +0200 Subject: Add some comments and cleanup --- backuper.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/backuper.sh b/backuper.sh index 5cda722..8acc4b6 100644 --- a/backuper.sh +++ b/backuper.sh @@ -72,6 +72,8 @@ die() { if [ -n "$1" ]; then echo "DIE: $1" >&2 fi + ## -6 ~ SIGABRT + ## This is the only SIGNAL that cleanup doesn't reset kill -6 "$$" } @@ -156,13 +158,6 @@ start_command() { ## Exclude keep without quotes /usr/bin/time -f "$TIME_FMT" $GENERATE tar c --preserve-permissions $EXCLUDE "$PLACES" > "$RUNDIR"/fifo_0 fi - - -# if [ -z "$GENERATE" ]; then -# $COMMAND > "FIFO_GEN" -# else -# echo $COMMAND | $GENERATE sh -s -# fi } start_pipeline() { @@ -183,11 +178,6 @@ start_pipeline() { done } -#backup_cmd() { -# /usr/bin/time -f "$TIME_FMT" $COMMAND -# [ "$?" != 0 ] && die "Generator command exited with error" -#} -# #create_backup() { # title "Create" # -- cgit v1.2.3