From 0127b60bf3a84e596f0971451aabbdf2acf29d73 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 11:50:59 -0800 Subject: [PATCH] keep disk filename prefixes to assign value correctly Signed-off-by: Arthur Lu --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 3d53cf9..b204392 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -220,7 +220,7 @@ function parseDisk (disk) { // disk in format: STORAGE: FILENAME, ARG1=..., ARG2 let parsed = {}; let kvpairs = disk.split(","); parsed.storage = kvpairs[0].split(":")[0]; - parsed.filename = kvpairs[0].split(":")[1].replace("iso/", ""); + parsed.filename = kvpairs[0]; kvpairs.shift(); kvpairs.forEach((element) => { let key = element.split("=")[0];