standardize apt-get

This commit is contained in:
aptalca
2021-06-16 17:17:19 -04:00
parent de86c3fd32
commit e331bbf5e4
2 changed files with 11 additions and 9 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
apt-get update
+8 -9
View File
@@ -3,15 +3,14 @@
ARCH=$(uname -m) ARCH=$(uname -m)
if [ ! -f "/flutter/bin/flutter" ]; then if [ ! -f "/flutter/bin/flutter" ]; then
echo "Installing Flutter" echo "Installing Flutter"
apt-get update
apt-get install -y \ apt-get install -y \
unzip unzip
git clone https://github.com/flutter/flutter.git -b beta --depth 1 /flutter git clone https://github.com/flutter/flutter.git -b beta --depth 1 /flutter
ln -s /flutter/bin/flutter /usr/bin/flutter ln -s /flutter/bin/flutter /usr/bin/flutter
flutter doctor flutter doctor
flutter config --enable-web flutter config --enable-web
flutter config --no-analytics flutter config --no-analytics
else else
echo "Flutter already installed, skipping" echo "Flutter already installed, skipping"
fi fi