From 20d40f069deb45d82124acae1418c42c3862919f Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 6 Jan 2026 22:07:03 -0500 Subject: [PATCH] ensure parent directory exists in deploy script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add mkdir -p to create parent directory if it doesn't exist. This allows deploying to any path without requiring manual directory creation. Example: ./deploy.sh /home/user/testing/jrunner Now works even if /home/user/testing doesn't exist yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- deploy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy.sh b/deploy.sh index a45813d..00acfca 100755 --- a/deploy.sh +++ b/deploy.sh @@ -9,6 +9,7 @@ echo "Building jrunner..." echo "Deploying to ${DEPLOY_DIR}..." sudo rm -rf "${DEPLOY_DIR}" +sudo mkdir -p "$(dirname "${DEPLOY_DIR}")" sudo unzip jrunner/build/distributions/jrunner.zip -d "$(dirname "${DEPLOY_DIR}")" # Only create symlink for default location