From d81f542de6e9cb85b85f58b4d5b4c49f419fcc8c Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Mon, 7 Aug 2017 10:14:09 +0200 Subject: [PATCH] fix: fix package logging --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 070d27f..c394b24 100755 --- a/backup.sh +++ b/backup.sh @@ -53,8 +53,8 @@ function backup () $ECHO "Creating backup in \"$TOSSH:$TARGET$1\"..." 2>&1 | formatLog >> $LOG if [ -n "$LISTPACKAGES" ] && [ -z "$FROMSSH" ]; then - $ECHO "$DPKG --get-selections | $AWK '!/deinstall|purge|hold/'|$CUT -f1 | $TR '\n' ' '" 2>&1 | formatLog >> $LOG - $DPKG --get-selections | $AWK '!/deinstall|purge|hold/'|$CUT -f1 |$TR '\n' ' ' 2>&1 | formatLog >> $LOG 2>&1 + $ECHO "$DPKG --get-selections | $AWK '!/deinstall|purge|hold/'|$CUT -f1 | $TR 'n' ' '" 2>&1 | formatLog >> $LOG + $DPKG --get-selections | $AWK '!/deinstall|purge|hold/'|$CUT -f1 |$TR '\n' ' ' >> $LOG 2>&1 fi # Create folders that don't exist