agent-flutter 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -205,20 +205,16 @@ run_fvm() {
|
|
|
205
205
|
ensure_fvm() {
|
|
206
206
|
append_path_once "$HOME/.pub-cache/bin"
|
|
207
207
|
|
|
208
|
-
if discover_working_fvm; then
|
|
209
|
-
|
|
208
|
+
if ! discover_working_fvm; then
|
|
209
|
+
ensure_dart
|
|
210
210
|
fi
|
|
211
211
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
if ! discover_working_fvm; then
|
|
213
|
+
echo "Installing FVM..."
|
|
214
|
+
dart pub global activate fvm >/dev/null
|
|
215
|
+
append_path_once "$HOME/.pub-cache/bin"
|
|
216
216
|
fi
|
|
217
217
|
|
|
218
|
-
echo "Installing FVM..."
|
|
219
|
-
dart pub global activate fvm >/dev/null
|
|
220
|
-
append_path_once "$HOME/.pub-cache/bin"
|
|
221
|
-
|
|
222
218
|
if ! discover_working_fvm; then
|
|
223
219
|
echo "Error: FVM installation failed or fvm is not runnable." >&2
|
|
224
220
|
exit 1
|