support keys as symlinks in pa-rekey
arĉi arcxi@dismail.de
Sat, 06 Jul 2024 14:17:11 +0200
1 files changed,
5 insertions(+),
3 deletions(-)
jump to
M
contrib/pa-rekey
→
contrib/pa-rekey
@@ -50,10 +50,12 @@ done
trap - INT EXIT -rm -rf "$realstore" +rm -rf "$realstore" || + die "Couldn't remove password directory" + mv "$basedir/tmp/passwords" "$realstore" -mv "$basedir/tmp/identities" "$basedir/identities" -mv "$basedir/tmp/recipients" "$basedir/recipients" +mv "$basedir/tmp/identities" "$(realpath "$basedir/identities")" +mv "$basedir/tmp/recipients" "$(realpath "$basedir/recipients")" rmdir "$basedir/tmp" # Recreate git repository if needed.