From aeb2e5d6c7d2a3aa04262142da0ee4ea893cb1fd Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Thu, 21 Apr 2016 12:13:42 -0500 Subject: [PATCH] Prevent the mixing of output and gpg prompts --- yadm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yadm b/yadm index f933d79..2be7c10 100755 --- a/yadm +++ b/yadm @@ -244,8 +244,13 @@ function encrypt() { fi done < "$YADM_ENCRYPT" + #; report which files will be encrypted + echo "Encrypting the following files:" + ls -1 "${GLOBS[@]}" + echo + #; encrypt all files which match the globs - tar -cv "${GLOBS[@]}" | gpg --yes "${GPG_OPTS[@]}" --output "$YADM_ARCHIVE" + tar -c "${GLOBS[@]}" | gpg --yes "${GPG_OPTS[@]}" --output "$YADM_ARCHIVE" if [ $? = 0 ]; then echo "Wrote new file: $YADM_ARCHIVE" else