From 4a610dd7cdb5a0d095c514cbb006d5b5ca425439 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Sat, 20 Jun 2020 10:24:34 -0700 Subject: [PATCH] g --- src/main.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 4910c1ca..567954ee 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'); @@ -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}` );