From 50fa4f963828f10f7e603bd66612647736f84e81 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 28 Feb 2024 17:21:40 +0300 Subject: [PATCH] packages: fixup script --- .../git-crypt-rm-gpg-user/git-crypt-rm-gpg-user.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/git-crypt-rm-gpg-user/git-crypt-rm-gpg-user.sh b/packages/git-crypt-rm-gpg-user/git-crypt-rm-gpg-user.sh index 57a6d11..5c70db8 100644 --- a/packages/git-crypt-rm-gpg-user/git-crypt-rm-gpg-user.sh +++ b/packages/git-crypt-rm-gpg-user/git-crypt-rm-gpg-user.sh @@ -211,14 +211,14 @@ do done cd "${CURRENT_DIR}" -for encrypted_file in $(awk '{print $2}' ${TMPDIR}/${BASENAME}/${TMPFILE}); do - rsync -rp -R "${encrypted_file}" "${TMPDIR}/${BASENAME}" -done +while read encrypted_file; do + rsync -rp -R "${encrypted_file}" "${TMPDIR}/${BASENAME}" +done < ${TMPDIR}/${BASENAME}/${TMPFILE} cd "${TMPDIR}/${BASENAME}" -for encrypted_file in $(awk '{print $2}' ${TMPFILE}); do +while read encrypted_file; do git add "${encrypted_file}" -done +done < ${TMPDIR}/${BASENAME}/${TMPFILE} git commit -m "New encrypted files" || true popd