Skip to content

Commit 8ecd383

Browse files
committed
feat: minor tweak output logs
1 parent 2d8300d commit 8ecd383

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ VERSION="${3:-2.0.2}"
88
OS="${2:-Linux}"
99
OS=$(echo "$OS" | awk '{print tolower($0)}')
1010

11-
echo "Installing Flutter SDK version \"${VERSION}\" from the ${CHANNEL} channel on ${OS}"
12-
1311
# OS archive file extension
1412
EXT="zip"
1513
if [[ $OS == linux ]]
@@ -23,6 +21,8 @@ FLUTTER_RUNNER_TOOL_CACHE="${RUNNER_TOOL_CACHE}/${VERSION}-${CHANNEL}"
2321
# Check if Flutter SDK already exists
2422
# Otherwise download and install
2523
if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
24+
echo "Installing Flutter SDK version \"${VERSION}\" from the ${CHANNEL} channel on ${OS}"
25+
2626
# Calculate download Url. Based on:
2727
# https://flutter.dev/docs/development/tools/sdk/releases
2828
PREFIX="https://storage.googleapis.com/flutter_infra_release/releases"
@@ -49,9 +49,10 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
4949
echo -e "::error::Download failed! Please check passed arguments."
5050
exit 1
5151
fi
52-
5352
fi
5453

54+
echo "Installed Flutter SDK version \"${VERSION}\"!"
55+
5556
# Configure pub to use a fixed location.
5657
echo "PUB_CACHE=${HOME}/.pub-cache" >> $GITHUB_ENV
5758

0 commit comments

Comments
 (0)