From 36252250146fb6450ccf4f392f3bc2ec2a9eb8e7 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Wed, 25 Sep 2024 20:57:29 -0400 Subject: [PATCH] minor setup fix for linux --- veilid-flutter/setup_flutter.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/veilid-flutter/setup_flutter.sh b/veilid-flutter/setup_flutter.sh index 79a7b14e..ab6a9cf3 100755 --- a/veilid-flutter/setup_flutter.sh +++ b/veilid-flutter/setup_flutter.sh @@ -3,7 +3,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" OS="unknown" if [ "$(uname)" == "Linux" ]; then - if [ ! "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then + if [ ! "$(lsb_release -a | grep -Ei 'debian|buntu|mint')" ]; then echo Not a supported Linux exit 1 fi @@ -40,6 +40,10 @@ else exit 1 fi +# turn off analytics +flutter config --no-analytics +dart --disable-analytics + # # install cargo cbindgen # cargo install cbindgen @@ -75,9 +79,5 @@ elif [ "$OS" == "macos" ]; then flutter config --enable-macos-desktop --enable-ios --enable-android fi -# turn off analytics -flutter config --no-analytics -dart --disable-analytics - # run flutter doctor flutter doctor -v