Skip to content

Commit 4757a1f

Browse files
authored
Установка opm для linux (#5)
1 parent 4ab3e3f commit 4757a1f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,10 @@ async function run() {
19961996

19971997
await exec.exec('bash ' + tmpFile.name);
19981998
fs.unlinkSync(tmpFile.name);
1999+
await exec.exec('curl -v https://hub.oscript.io/download/opm/opm.ospx --output opm.ospx');
2000+
await exec.exec('sudo opm install -f opm.ospx');
2001+
fs.unlinkSync('opm.ospx');
2002+
19992003
await exec.exec('oscript --version');
20002004

20012005
} else {

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ async function run() {
3131

3232
await exec.exec('bash ' + tmpFile.name);
3333
fs.unlinkSync(tmpFile.name);
34+
await exec.exec('curl -v https://hub.oscript.io/download/opm/opm.ospx --output opm.ospx');
35+
await exec.exec('sudo opm install -f opm.ospx');
36+
fs.unlinkSync('opm.ospx');
37+
3438
await exec.exec('oscript --version');
3539

3640
} else {

0 commit comments

Comments
 (0)