Avoid prepare sh
This commit is contained in:
parent
2d645274a9
commit
774da7ad6c
7
build.sh
7
build.sh
@ -2,8 +2,11 @@
|
|||||||
|
|
||||||
# Check if .env file exists
|
# Check if .env file exists
|
||||||
if [ ! -f .env ]; then
|
if [ ! -f .env ]; then
|
||||||
echo "Error: .env file not found!"
|
{
|
||||||
exit 1
|
echo "APPWRITE_PROJECT_ID=$APPWRITE_PROJECT_ID"
|
||||||
|
echo "APPWRITE_PROJECT_NAME=$APPWRITE_PROJECT_NAME"
|
||||||
|
echo "APPWRITE_PUBLIC_ENDPOINT=$APPWRITE_PUBLIC_ENDPOINT"
|
||||||
|
} >> .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Read .env file and convert it to --dart-define arguments
|
# Read .env file and convert it to --dart-define arguments
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
{
|
|
||||||
echo "APPWRITE_PROJECT_ID=$APPWRITE_PROJECT_ID"
|
|
||||||
echo "APPWRITE_PROJECT_NAME=$APPWRITE_PROJECT_NAME"
|
|
||||||
echo "APPWRITE_PUBLIC_ENDPOINT=$APPWRITE_PUBLIC_ENDPOINT"
|
|
||||||
} >> .env
|
|
||||||
Loading…
x
Reference in New Issue
Block a user