Adding fix for tar exiting with code 1 issue

This commit is contained in:
Sankalp Kotewar
2022-06-01 13:18:50 +00:00
committed by GitHub
parent 8263c4d15d
commit 197f5a13a9
9 changed files with 1756 additions and 2017 deletions

View File

@@ -118,6 +118,8 @@ export async function createTar(
...getCompressionProgram(),
'-cf',
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
'--exclude',
cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
'-P',
'-C',
workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),