From cf8649a5aca8520a08984701aea3443bbf54570b Mon Sep 17 00:00:00 2001 From: Oleksandr Slovak Date: Thu, 25 Apr 2024 11:38:52 +0200 Subject: [PATCH] lib/flashing: Add possibility to select jetson-flash repo via env variable. Change-type: patch Signed-off-by: Oleksandr Slovak --- lib/flashing/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/flashing/index.ts b/lib/flashing/index.ts index a19d694..58e6291 100644 --- a/lib/flashing/index.ts +++ b/lib/flashing/index.ts @@ -370,11 +370,13 @@ async function flashJetson(filename: string, autoKit: Autokit, deviceType: strin const JETSON_FLASH_DIR = process.env.JETSON_FLASH_DIR || '/usr/app/jetson-flash/Orin_Nx_Nano_NVME'; const JETSON_FLASH_SCRIPT = process.env.JETSON_FLASH_SCRIPT || 'flash_orin.sh'; const JETSON_FLASH_BRANCH = process.env.JETSON_FLASH_BRANCH || 'master'; + const JETSON_FLASH_REPO_URL = process.env.JETSON_FLASH_REPO_URL || 'https://github.com/balena-os/jetson-flash.git'; + // now start the jetson flash tool with docker. // build first try{ - await exec('cd /usr/app/ && git clone https://github.com/balena-os/jetson-flash.git'); + await exec(`cd /usr/app/ && git clone ${JETSON_FLASH_REPO_URL}`); } catch(e){ console.log(e) }