Skip to content

Commit 9f92ec2

Browse files
authored
Add error message about missing unzip utility (flutter#55315)
1 parent 796d706 commit 9f92ec2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bin/internal/update_dart_sdk.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
3939
echo
4040
exit 1
4141
}
42+
command -v unzip > /dev/null 2>&1 || {
43+
echo
44+
echo 'Missing "unzip" tool. Unable to extract Dart SDK.'
45+
case "$(uname -s)" in
46+
Darwin)
47+
echo 'Consider running "brew install unzip".'
48+
;;
49+
Linux)
50+
echo 'Consider running "sudo apt-get install unzip".'
51+
;;
52+
*)
53+
echo "Please install unzip."
54+
;;
55+
esac
56+
echo
57+
exit 1
58+
}
4259
echo "Downloading Dart SDK from Flutter engine $ENGINE_VERSION..."
4360

4461
case "$(uname -s)" in

0 commit comments

Comments
 (0)