Skip to content

Commit 37829f8

Browse files
authored
Merge pull request #105 from TorstenDittmann/patch-3
fix(cli): exclude archive from being compressed
2 parents fcdb6d2 + cc74fbf commit 37829f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/cli/app/services/service.php.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $cli
7878
}
7979
$archiveName = 'code.tar.gz';
8080
$volumeMountPoint = realpath(__DIR__.'/../../../files/');
81-
exec("tar -zcvf $archiveName -C ${cloudFunctionParentDir} $cloudFunctionDirName && mv ${archiveName} ${volumeMountPoint}");
81+
exec("tar -zcvf $archiveName --exclude=$archiveName -C ${cloudFunctionParentDir} $cloudFunctionDirName && mv ${archiveName} ${volumeMountPoint}");
8282
$archivePath = realpath($volumeMountPoint."/$archiveName");$archivePath = realpath($volumeMountPoint."/$archiveName");
8383
$cFile = new \CURLFile($archivePath, 'application/x-gzip' , basename($archivePath));
8484
@@ -155,4 +155,4 @@ $cli
155155
});
156156
157157
158-
$cli->run();
158+
$cli->run();

0 commit comments

Comments
 (0)