From 0de7c3a12c56b6c0e696cfd1b518b5cdcd6e716c Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Wed, 16 Apr 2025 10:41:37 -0400 Subject: [PATCH] generalized the syncthing conflict locator --- .../scripts/automation/locate_syncthing_conflicts.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/customize/fred/scripts/automation/locate_syncthing_conflicts.sh b/scripts/customize/fred/scripts/automation/locate_syncthing_conflicts.sh index ecd24b45..28f8e309 100644 --- a/scripts/customize/fred/scripts/automation/locate_syncthing_conflicts.sh +++ b/scripts/customize/fred/scripts/automation/locate_syncthing_conflicts.sh @@ -1,4 +1,10 @@ +#!/usr/bin/env bash -# assumes our file hierarchy on /z, which is where most of our -# synching is done against. -find /z/ -follow -iname ".sync-conflict*" +path="$1"; shift +if [ -z "$path" ]; then + # assumes our file hierarchy on /z, which is where most of our + # synching is done against. + path="/z/" +fi + +find "$path" -follow -iname ".sync-conflict*" -- 2.34.1