Skip to content

Commit 00c3aed

Browse files
committed
Fix variables FLUTTER_OS
1 parent 6e0e554 commit 00c3aed

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
@@ -53,7 +53,7 @@ fi
5353

5454
# Fix Flutter SDK version for Apple Silicon
5555
FLUTTER_BUILD_OS=$FLUTTER_OS
56-
if [[ $OS == "macos" && $ARCH == "arm64" ]]; then
56+
if [[ $FLUTTER_OS == "macos" && $FLUTTER_ARCH == "arm64" ]]; then
5757
if [[ $FLUTTER_VERSION < 3.* ]]; then
5858
echo -e "::error::Flutter SDK version \"${FLUTTER_VERSION}\" is not supported on Apple Silicon. Please use version 3.0.0 or higher."
5959
exit 1
@@ -108,7 +108,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
108108

109109
# Extracting installation archive
110110
echo -n "Extracting Flutter SDK archive..."
111-
if [[ $OS == linux ]]
111+
if [[ $FLUTTER_OS == linux ]]
112112
then
113113
tar -C "${FLUTTER_RUNNER_TOOL_CACHE}" -xf ${FLUTTER_BUILD_ARTIFACT_FILE} >/dev/null
114114
EXTRACT_ARCHIVE_CODE=$?
@@ -123,7 +123,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
123123
exit 1
124124
fi
125125
else
126-
echo "Flutter SDK version restored from cache: ${FLUTTER_VERSION} (${FLUTTER_CHANNEL}) on \"${FLUTTER_OS}_${ARCH}\""
126+
echo "Flutter SDK version restored from cache: ${FLUTTER_VERSION} (${FLUTTER_CHANNEL}) on \"${FLUTTER_OS}_${FLUTTER_ARCH}\""
127127
fi
128128

129129
# Configure pub to use a fixed location.

0 commit comments

Comments
 (0)