From e331bbf5e4cd5b234be5b880f9edf599022926ac Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 16 Jun 2021 17:17:19 -0400 Subject: [PATCH] standardize apt-get --- root/etc/cont-init.d/95-apt-get | 3 +++ root/etc/cont-init.d/98-flutter | 17 ++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 root/etc/cont-init.d/95-apt-get diff --git a/root/etc/cont-init.d/95-apt-get b/root/etc/cont-init.d/95-apt-get new file mode 100644 index 0000000..3a725ea --- /dev/null +++ b/root/etc/cont-init.d/95-apt-get @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bash + +apt-get update \ No newline at end of file diff --git a/root/etc/cont-init.d/98-flutter b/root/etc/cont-init.d/98-flutter index 0568c82..34ceeda 100644 --- a/root/etc/cont-init.d/98-flutter +++ b/root/etc/cont-init.d/98-flutter @@ -3,15 +3,14 @@ ARCH=$(uname -m) if [ ! -f "/flutter/bin/flutter" ]; then - echo "Installing Flutter" - apt-get update + echo "Installing Flutter" apt-get install -y \ - unzip - git clone https://github.com/flutter/flutter.git -b beta --depth 1 /flutter - ln -s /flutter/bin/flutter /usr/bin/flutter - flutter doctor - flutter config --enable-web - flutter config --no-analytics + unzip + git clone https://github.com/flutter/flutter.git -b beta --depth 1 /flutter + ln -s /flutter/bin/flutter /usr/bin/flutter + flutter doctor + flutter config --enable-web + flutter config --no-analytics else - echo "Flutter already installed, skipping" + echo "Flutter already installed, skipping" fi \ No newline at end of file