Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
wyTrivail committed Jun 20, 2020
1 parent 6f325e1 commit 4a610dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ async function run() {
}
console.log(`name: ${name}`);
console.log(`version: ${version}`);
let splitted = specFile.split("/");
let specFileName = splitted[splitted.length-1];
console.log(`specFileName: ${specFileName}`);


// setup rpm tree
await exec.exec('rpmdev-setuptree');
Expand Down Expand Up @@ -63,9 +67,6 @@ async function run() {

// Execute rpmbuild , -ba generates both RPMS and SPRMS
try {
let splitted = specFile.split("/");
let specFileName = splitted[splitted.length-1];
console.log(`specFileName: ${specFileName}`);
await exec.exec(
`rpmbuild -ba /github/home/rpmbuild/SPECS/${specFileName}`
);
Expand Down

0 comments on commit 4a610dd

Please sign in to comment.