diff --git a/lib/main.js b/lib/main.js index a2b01cf..d62c347 100644 --- a/lib/main.js +++ b/lib/main.js @@ -36,7 +36,7 @@ function run() { console.log(error); }); //console.log(`Tar Path for copy : ${tarBallPath}`); - yield exec.exec('echo $HOME'); + yield exec.exec('echo "$HOME"'); // Get repo files from /github/workspace/ yield exec.exec('ls -la '); yield io.cp(`${repo}-1.0.tar.gz`, '/root/rpmbuild/SOURCES/'); diff --git a/src/main.ts b/src/main.ts index 7fb8792..d6e73b7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,7 +38,7 @@ async function run() { }); //console.log(`Tar Path for copy : ${tarBallPath}`); - await exec.exec('echo $HOME'); + await exec.exec('echo "$HOME"'); // Get repo files from /github/workspace/ await exec.exec('ls -la ');