This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check if pubspec.yaml file exists | |
| if [ ! -f "pubspec.yaml" ]; then | |
| echo "β οΈ Please run command in a Flutter project" | |
| exit 1 | |
| fi | |
| # Get the value of "name: value" | |
| projectName=$(awk '/name:/ {print $2}' pubspec.yaml) |