From d68d9c50db4cdba32266c52e6546f1d5181948db Mon Sep 17 00:00:00 2001 From: Aldis Berjoza Date: Wed, 8 Aug 2018 22:23:23 +0300 Subject: Do not reencrypt symbolic links --- src/password-store.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 7264ffc..d89d455 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -108,6 +108,7 @@ reencrypt_path() { local prev_gpg_recipients="" gpg_keys="" current_keys="" index passfile local groups="$($GPG $PASSWORD_STORE_GPG_OPTS --list-config --with-colons | grep "^cfg:group:.*")" while read -r -d "" passfile; do + [[ -L $passfile ]] && continue local passfile_dir="${passfile%/*}" passfile_dir="${passfile_dir#$PREFIX}" passfile_dir="${passfile_dir#/}" -- cgit v1.2.3