From 20c66b4be2c0b922ae4927d3021c3f2a9e6d1e8c Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 16 Mar 2026 19:50:42 +0000 Subject: fix: deploy script skips scripts/hooks/ subdirectory when copying cp without -r fails on directories. Use find -maxdepth 1 -type f to copy only files, since hooks/ is for local dev only. Co-Authored-By: Claude Sonnet 4.6 --- scripts/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/deploy') diff --git a/scripts/deploy b/scripts/deploy index 206087d..7d59a86 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -44,7 +44,7 @@ chmod +x "${BIN_DIR}/claudomator" echo "==> Copying scripts..." mkdir -p "${SITE_DIR}/scripts" -cp -p "${REPO_DIR}/scripts/"* "${SITE_DIR}/scripts/" +find "${REPO_DIR}/scripts" -maxdepth 1 -type f -exec cp -p {} "${SITE_DIR}/scripts/" \; chown -R www-data:www-data "${SITE_DIR}/scripts" find "${SITE_DIR}/scripts" -maxdepth 1 -type f -exec chmod +x {} + -- cgit v1.2.3