Connect Flutter phone auth and Android platform
This commit is contained in:
@@ -103,10 +103,13 @@ else
|
||||
[[ ! -e "$staging_dir/.env" && ! -L "$staging_dir/.env" ]] || die 'release must not contain a tracked .env file'
|
||||
ln -s "$shared_dir/.env" "$staging_dir/.env"
|
||||
|
||||
if command -v php >/dev/null 2>&1 && [[ -d "$staging_dir/backend" ]]; then
|
||||
while IFS= read -r -d '' php_file; do
|
||||
php -l "$php_file" >/dev/null || die "PHP syntax check failed: $php_file"
|
||||
done < <(find "$staging_dir/backend" -type f -name '*.php' -print0)
|
||||
if command -v php >/dev/null 2>&1; then
|
||||
for php_dir in "$staging_dir/backend" "$staging_dir/public"; do
|
||||
[[ -d "$php_dir" ]] || continue
|
||||
while IFS= read -r -d '' php_file; do
|
||||
php -l "$php_file" >/dev/null || die "PHP syntax check failed: $php_file"
|
||||
done < <(find "$php_dir" -type f -name '*.php' -print0)
|
||||
done
|
||||
fi
|
||||
|
||||
mv "$staging_dir" "$release_dir"
|
||||
|
||||
Reference in New Issue
Block a user