summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-16 19:50:42 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-16 19:50:42 +0000
commit20c66b4be2c0b922ae4927d3021c3f2a9e6d1e8c (patch)
tree514b74574dbd74e77f2d360c7b688a7694ddb82e /scripts
parent174b3c8198444605aca33db9b077f36f7bc1c3fb (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deploy2
1 files changed, 1 insertions, 1 deletions
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 {} +