oddlama / agenix-rekey

An agenix extension adding secret generation and automatic rekeying using a YubiKey or master-identity
MIT License
197 stars 16 forks source link

fix: only add deleted files to git #35

Closed PatrickDaG closed 1 month ago

PatrickDaG commented 1 month ago

This simplifies the script a bit and fixes two problems:

  1. we no longer add unrelated files that might be in the folder.
  2. It might happen that the folder does not exist in which case the current script still tries to add it, in which case git will complain the it does not know the pathspec.