fix failed flutter install
This commit is contained in:
@@ -121,6 +121,8 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
FLUTTER_HOME="$HOME/flutter"
|
||||
# Avoid git ownership issues when Flutter checks out deps.
|
||||
git config --global --add safe.directory "$FLUTTER_HOME" || true
|
||||
if [ ! -x "$FLUTTER_HOME/bin/flutter" ]; then
|
||||
rm -rf "$FLUTTER_HOME"
|
||||
curl -fsSL -o /tmp/flutter.tar.xz "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}-stable.tar.xz"
|
||||
@@ -217,6 +219,8 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
FLUTTER_HOME="$HOME/flutter"
|
||||
# Avoid git ownership issues when Flutter checks out deps.
|
||||
git config --global --add safe.directory "$FLUTTER_HOME" || true
|
||||
if [ ! -x "$FLUTTER_HOME/bin/flutter" ]; then
|
||||
rm -rf "$FLUTTER_HOME"
|
||||
curl -fsSL -o /tmp/flutter.tar.xz "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}-stable.tar.xz"
|
||||
|
||||
Reference in New Issue
Block a user