Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Dec 16, 2024
1 parent de9c6dc commit 34b9e75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ fi

# Check if Dart & Flutter SDK is installed
if [ ! "$(command -v flutter)" ]; then
echo '::warning::Flutter is not installed,'
echo 'Please use "uses: flutter-actions/setup-flutter@v4" to setup Dart & Flutter SDK.'
echo '::warning::Flutter is not installed, Please use "uses: flutter-actions/setup-flutter@v4" to setup Dart & Flutter SDK.'
fi
if [ ! "$(command -v dart)" ]; then
echo '::error::Dark is not installed'
echo 'Please use "uses: dart-lang/setup-dart@v1" or "uses: flutter-actions/setup-flutter@v4" to setup Dart or Flutter SDK.'
echo '::error::Dark is not installed, Please use "uses: dart-lang/setup-dart@v1" or "uses: flutter-actions/setup-flutter@v4" to setup Dart or Flutter SDK.'
exit 1
fi

Expand Down

0 comments on commit 34b9e75

Please sign in to comment.