aboutsummaryrefslogtreecommitdiffstats
path: root/tools/find_syncthing_conflicts
blob: efdda1517963d035794b895a5c1435ea868edce2 (plain)
1
2
3
4
5
6
7
8
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*'