diff options
author | Erich Eckner <git@eckner.net> | 2021-11-13 23:05:31 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-11-13 23:05:31 +0100 |
commit | 9ac05a65b68cf60a3ccd15b4e869ae440ce66010 (patch) | |
tree | a2b0842813ca1931002a942efd5c371e76b4482b /carddav-to-alpine | |
parent | 752fb28b19c4c54d3f2bffd415b197a1fc087672 (diff) | |
download | carddav-alpine-converter-master.tar.xz |
Diffstat (limited to 'carddav-to-alpine')
-rwxr-xr-x | carddav-to-alpine | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/carddav-to-alpine b/carddav-to-alpine index 66d885f..5b4c99e 100755 --- a/carddav-to-alpine +++ b/carddav-to-alpine @@ -4,6 +4,11 @@ error=0 +old_uids=$( + [ -f "${git_dir}/uids" ] \ + && awk '{print $1}' "${git_dir}/uids" +) + for file in 'addressbook' 'uids'; do if [ -n "$(git -C "${git_dir}" diff -- "${file}")" ]; then >&2 printf 'File "%s" was changed relative to git.\n' "${file##*/}" |