From 75f50d3b3a7b0a6dec6049a71f75e786829ab54f Mon Sep 17 00:00:00 2001 From: Felipe Lalanne Date: Thu, 28 Sep 2023 16:47:58 -0300 Subject: [PATCH] Update commands in offline updates The `balena fleet` commands in this guide no longer work with the latest version of the CLI which returns a capitalized table instead of all uppercase items. Not sure when this change took place on the CLI side. Change-type: patch --- pages/learn/deploy/offline-updates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/learn/deploy/offline-updates.md b/pages/learn/deploy/offline-updates.md index 896942ea3e..baeff40246 100644 --- a/pages/learn/deploy/offline-updates.md +++ b/pages/learn/deploy/offline-updates.md @@ -93,7 +93,7 @@ $ balena fleet create ${fleet_name} --type ${device_type} Initialize the `fleet_slug` environment variable with the command below to store the slug of the fleet. ```bash -$ fleet_slug=$(balena fleet ${fleet_name} | grep SLUG | awk '{print $2}') +$ fleet_slug=$(balena fleet ${fleet_name} | grep Slug | awk '{print $3}') ``` ### Create/Use Pre-existing Offline Device @@ -173,7 +173,7 @@ $ balena deploy ${fleet_slug} --build --emulated --source . The following steps will flash the latest release onto the balenaOS image downloaded in the previous steps and pin the device to mentioned release commit. ```bash -$ commit=$(balena fleet ${fleet_slug} | grep COMMIT | awk '{print $2}') +$ commit=$(balena fleet ${fleet_slug} | grep Commit | awk '{print $3}') $ balena preload ${tmpimg} \ --fleet ${fleet_slug} \