Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryuni committed Mar 29, 2024
1 parent 37af73d commit 6fd04ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/deploy-cloudflare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fd04ec

Please sign in to comment.