8000 Run apt-get first · JonasPBovin/github-script@b10f6d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b10f6d2

Browse files
committed
Run apt-get first
1 parent c2fc105 commit b10f6d2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13637,7 +13637,7 @@ class se_Helper {
1363713637
const execSync = external_child_process_.execSync;
1363813638
console.log('Run number: ' + this.currentBuild.runNumber);
1363913639
try {
13640-
const xmllint = execSync('sudo apt install libxml2-utils', {
13640+
const xmllint = execSync('sudo apt-get update; sudo apt install libxml2-utils', {
1364113641
shell: '/bin/bash'
1364213642
});
1364313643
console.log(xmllint.toString());

src/se.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ export class Helper {
4747
const execSync = child.execSync
4848
console.log('Run number: ' + this.currentBuild.runNumber)
4949
try {
50-
const xmllint = execSync('sudo apt install libxml2-utils', {
51-
shell: '/bin/bash'
52-
})
50+
const xmllint = execSync(
51+
'sudo apt-get update; sudo apt install libxml2-utils',
52+
{
53+
shell: '/bin/bash'
54+
}
55+
)
5356

5457
console.log(xmllint.toString())
5558
} catch (err) {

0 commit comments

Comments
 (0)
0