From 6fd04ec16515b77261c606d1cb1c7ddd4df3204a Mon Sep 17 00:00:00 2001 From: Luiz Ferraz Date: Fri, 29 Mar 2024 16:45:07 -0300 Subject: [PATCH] WIP --- examples/deploy-cloudflare.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/deploy-cloudflare.sh b/examples/deploy-cloudflare.sh index d427900c..3e55377d 100755 --- a/examples/deploy-cloudflare.sh +++ b/examples/deploy-cloudflare.sh @@ -12,12 +12,12 @@ PROJECT_NAME=$1 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" # Check that the project exists -if [ ! -d "$PROJECT_NAME" ]; then +if [ ! -d "$SCRIPT_DIR/$PROJECT_NAME" ]; then echo "Project $PROJECT_NAME does not exist" >&2 exit 1 fi -cd "$PROJECT_NAME" +cd "$SCRIPT_DIR/$PROJECT_NAME" # Check that the project is an Astro project if ! jq -e '.dependencies | has("astro")' package.json >/dev/null; then