From b10f6d2a4437b61d97cd0c8855aa746b7971b160 Mon Sep 17 00:00:00 2001 From: Jonas Bovin Date: Fri, 9 Dec 2022 12:28:47 +0100 Subject: [PATCH] Run apt-get first --- dist/index.js | 2 +- src/se.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index bdcd7e1e0..c98fd9bf7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13637,7 +13637,7 @@ class se_Helper { const execSync = external_child_process_.execSync; console.log('Run number: ' + this.currentBuild.runNumber); try { - const xmllint = execSync('sudo apt install libxml2-utils', { + const xmllint = execSync('sudo apt-get update; sudo apt install libxml2-utils', { shell: '/bin/bash' }); console.log(xmllint.toString()); diff --git a/src/se.ts b/src/se.ts index cd54d8a87..4fb91dacb 100644 --- a/src/se.ts +++ b/src/se.ts @@ -47,9 +47,12 @@ export class Helper { const execSync = child.execSync console.log('Run number: ' + this.currentBuild.runNumber) try { - const xmllint = execSync('sudo apt install libxml2-utils', { - shell: '/bin/bash' - }) + const xmllint = execSync( + 'sudo apt-get update; sudo apt install libxml2-utils', + { + shell: '/bin/bash' + } + ) console.log(xmllint.toString()) } catch (err) {