Skip to content

Commit 78ed478

Browse files
committed
Update logging output
1 parent 45d06b0 commit 78ed478

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

action.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
133133

134134
# Extracting installation archive
135135
EXTRACT_ARCHIVE_CODE=0
136-
echo "Extracting Flutter SDK archive..."
136+
echo -n "Extracting Flutter SDK archive..."
137137
if [[ $OS == linux ]]
138138
then
139139
tar -C "${FLUTTER_RUNNER_TOOL_CACHE}" -xf ${DOWNLOAD_PATH} > /dev/null
@@ -142,7 +142,9 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
142142
unzip ${DOWNLOAD_PATH} -d "${FLUTTER_RUNNER_TOOL_CACHE}" > /dev/null
143143
EXTRACT_ARCHIVE_CODE=$?
144144
fi
145-
if [ $EXTRACT_ARCHIVE_CODE -ne 0 ]; then
145+
if [ $EXTRACT_ARCHIVE_CODE -eq 0 ]; then
146+
echo ": OK"
147+
else
146148
echo -e "::error::Failed to extract Flutter SDK archive."
147149
exit 1
148150
fi
@@ -165,6 +167,7 @@ ${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-analytics 2&>1 > /d
165167
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-cli-animations 2&>1 > /dev/null
166168

167169
# Report success, and print version.
168-
echo -e "Succesfully installed Flutter SDK:"
170+
echo "Succesfully installed Flutter SDK:"
171+
echo "------------------------------------------------------------------------------"
169172
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/dart --version
170173
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter --version

0 commit comments

Comments
 (0)