Skip to content

Commit

Permalink
Update logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Apr 28, 2024
1 parent 45d06b0 commit 78ed478
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then

# Extracting installation archive
EXTRACT_ARCHIVE_CODE=0
echo "Extracting Flutter SDK archive..."
echo -n "Extracting Flutter SDK archive..."
if [[ $OS == linux ]]
then
tar -C "${FLUTTER_RUNNER_TOOL_CACHE}" -xf ${DOWNLOAD_PATH} > /dev/null
Expand All @@ -142,7 +142,9 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
unzip ${DOWNLOAD_PATH} -d "${FLUTTER_RUNNER_TOOL_CACHE}" > /dev/null
EXTRACT_ARCHIVE_CODE=$?
fi
if [ $EXTRACT_ARCHIVE_CODE -ne 0 ]; then
if [ $EXTRACT_ARCHIVE_CODE -eq 0 ]; then
echo ": OK"
else
echo -e "::error::Failed to extract Flutter SDK archive."
exit 1
fi
Expand All @@ -165,6 +167,7 @@ ${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-analytics 2&>1 > /d
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-cli-animations 2&>1 > /dev/null

# Report success, and print version.
echo -e "Succesfully installed Flutter SDK:"
echo "Succesfully installed Flutter SDK:"
echo "------------------------------------------------------------------------------"
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/dart --version
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter --version

0 comments on commit 78ed478

Please sign in to comment.