diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-05 11:39:09 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-05 11:39:09 +0200 |
| commit | 9a0333acf1fe6f6672710ce65cfce2ae9dd866f4 (patch) | |
| tree | 25be09fdc7921d0eb98774e8661f0fd636f6d7ce /tools | |
| parent | f87b35613f82e66b3854747ef6952dedc0674213 (diff) | |
| download | net_services-9a0333acf1fe6f6672710ce65cfce2ae9dd866f4.tar.gz net_services-9a0333acf1fe6f6672710ce65cfce2ae9dd866f4.zip | |
feat: add tool to find syncthing conflicts
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/find_syncthing_conflicts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/find_syncthing_conflicts b/tools/find_syncthing_conflicts new file mode 100755 index 0000000..efdda15 --- /dev/null +++ b/tools/find_syncthing_conflicts @@ -0,0 +1,9 @@ +#!/usr/bin/bash +set -euo pipefail + +readarray -t synced_folders_ids < <(syncthing cli config folders list) +declare -a synced_folders_paths +for f in "${synced_folders_ids[@]}"; do + synced_folders_paths+=("$(syncthing cli config folders "$f" path get)") +done +find "${synced_folders_paths[@]/#'~'/$HOME}" -name '*sync-conflict*' |
