Prevent the mixing of output and gpg prompts
This commit is contained in:
parent
8bede1cb84
commit
aeb2e5d6c7
1 changed files with 6 additions and 1 deletions
7
yadm
7
yadm
|
@ -244,8 +244,13 @@ function encrypt() {
|
||||||
fi
|
fi
|
||||||
done < "$YADM_ENCRYPT"
|
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
|
#; 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
|
if [ $? = 0 ]; then
|
||||||
echo "Wrote new file: $YADM_ARCHIVE"
|
echo "Wrote new file: $YADM_ARCHIVE"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue