diff options
author | Aldis Berjoza <aldis@berjoza.lv> | 2018-08-08 22:23:23 +0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-08-09 19:37:50 -0700 |
commit | d68d9c50db4cdba32266c52e6546f1d5181948db (patch) | |
tree | 5fd5dd02301649d5099751a893c5cd294308b67b /src | |
parent | 74fdfb5022f317ad48d449e29543710bdad1afda (diff) | |
download | pass-d68d9c50db4cdba32266c52e6546f1d5181948db.tar.gz pass-d68d9c50db4cdba32266c52e6546f1d5181948db.tar.bz2 pass-d68d9c50db4cdba32266c52e6546f1d5181948db.zip |
Do not reencrypt symbolic links
Diffstat (limited to '')
-rwxr-xr-x | src/password-store.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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#/}" |