From: Fred T. Hamster Date: Wed, 16 Apr 2025 14:41:37 +0000 (-0400) Subject: generalized the syncthing conflict locator X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=0de7c3a12c56b6c0e696cfd1b518b5cdcd6e716c;p=feisty_meow.git generalized the syncthing conflict locator --- 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*"