From 345dc48b8672e8a08687d85a6d4f3649a8077b84 Mon Sep 17 00:00:00 2001 From: aguil Date: Sun, 12 Jul 2026 15:34:18 -0600 Subject: [PATCH] fix(just): resolve applied agents-sync script --- Justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Justfile b/Justfile index 25f398b..4db6e59 100644 --- a/Justfile +++ b/Justfile @@ -11,6 +11,13 @@ default: agents-sync mode="copy": @_jd="{{justfile_directory()}}"; \ _script="$_jd/dot_agents/scripts/executable_sync-global-rules.sh"; \ + if [ ! -f "$_script" ]; then \ + _script="$HOME/.agents/scripts/sync-global-rules.sh"; \ + fi; \ + if [ ! -f "$_script" ]; then \ + _cz="$(chezmoi source-path 2>/dev/null || true)"; \ + if [ -n "$_cz" ]; then _script="$_cz/dot_agents/scripts/executable_sync-global-rules.sh"; fi; \ + fi; \ if [ ! -f "$_script" ]; then \ printf 'agents-sync: missing script: %s\n' "$_script" >&2; exit 1; \ fi; \