Skip to content

Commit a935e17

Browse files
authored
Fix existing installation not detected after restoring cache (#53)
1 parent 75b054b commit a935e17

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/scripts/install-sdk.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ function install_flutter() {
2626
rm -f "flutter_sdk.${suffix}"
2727
}
2828

29+
echo "export PATH=$INSTALL_LOCATION/flutter/bin:\$PATH" >> "$BASH_ENV"
30+
# shellcheck source=/dev/null
31+
source "$BASH_ENV"
2932

3033
if ! command -v flutter &> /dev/null; then
3134
install_flutter "$(uname)" "$(uname -m)"
35+
echo "Flutter installed at: $(eval command -v flutter)"
3236
else
3337
echo "Previous Flutter installation detected: $(eval command -v flutter)"
34-
exit 0
3538
fi
36-
37-
echo "export PATH=$INSTALL_LOCATION/flutter/bin:\$PATH" >> "$BASH_ENV"
38-
39-
# shellcheck source=/dev/null
40-
source "$BASH_ENV"
41-
which flutter

0 commit comments

Comments
 (0)