From 34b9e754925ed358b4e6921d4cf12009c66a0243 Mon Sep 17 00:00:00 2001 From: Socheat Sok Date: Mon, 16 Dec 2024 14:54:53 +0700 Subject: [PATCH] Improve logging --- action.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/action.sh b/action.sh index 56ab59f..f2e1f8e 100755 --- a/action.sh +++ b/action.sh @@ -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