Skip to content

Commit c3921f5

Browse files
committed
Supress error when flutter config throw error
1 parent 35187a5 commit c3921f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ echo "${FLUTTER_PUB_CACHE}/bin" >> $GITHUB_PATH
132132
echo "${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin" >> $GITHUB_PATH
133133

134134
# Invoke Flutter SDK to suppress the analytics.
135-
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter --version --suppress-analytics > /dev/null
135+
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter --version --suppress-analytics 2&>1 > /dev/null
136136

137137
# Disable Google Analytics and CLI animations
138-
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-analytics > /dev/null
139-
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-cli-animations > /dev/null
138+
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-analytics 2&>1 > /dev/null
139+
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-cli-animations 2&>1 > /dev/null
140140

141141
# Report success, and print version.
142142
echo -e "Succesfully installed Flutter SDK:"

0 commit comments

Comments
 (0)