ensure parent directory exists in deploy script
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 <noreply@anthropic.com>
This commit is contained in:
parent
b0f104927c
commit
20d40f069d
@ -9,6 +9,7 @@ echo "Building jrunner..."
|
|||||||
|
|
||||||
echo "Deploying to ${DEPLOY_DIR}..."
|
echo "Deploying to ${DEPLOY_DIR}..."
|
||||||
sudo rm -rf "${DEPLOY_DIR}"
|
sudo rm -rf "${DEPLOY_DIR}"
|
||||||
|
sudo mkdir -p "$(dirname "${DEPLOY_DIR}")"
|
||||||
sudo unzip jrunner/build/distributions/jrunner.zip -d "$(dirname "${DEPLOY_DIR}")"
|
sudo unzip jrunner/build/distributions/jrunner.zip -d "$(dirname "${DEPLOY_DIR}")"
|
||||||
|
|
||||||
# Only create symlink for default location
|
# Only create symlink for default location
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user