If no params passed, default to web

This commit is contained in:
Khushboo Verma 2025-08-08 18:29:14 +05:30
parent fcc2384a5e
commit c0cae9fcb7

View File

@ -20,13 +20,9 @@ done < .env
# Check if device parameter is provided # Check if device parameter is provided
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: ./build.sh <device_id_or_name>" echo "No device specified. Building for web..."
echo "Example: ./build.sh chrome" flutter build web "${ARGS[@]}"
echo "Example: ./build.sh 'iPhone 15'" exit 0
echo ""
echo "Available devices:"
flutter devices
exit 1
fi fi
DEVICE_NAME="$1" DEVICE_NAME="$1"