Update functions.php

This commit is contained in:
Bradley Schofield committed 2021-07-22 11:46:05 +01:00
1 parent ca3d677596
commit 70d4c4d7be
1 file changed
+3 -3
+3 -3
View File
@@ -433,9 +433,9 @@ class FunctionsV1 extends Worker
}
$exitCodeUntar = Console::execute("docker exec ".
$container.
" sh -c 'mv /tmp/code.tar.gz /usr/local/src/code.tar.gz && tar -zxf /usr/local/src/code.tar.gz --strip 1 && rm /usr/local/src/code.tar.gz'"
, '', $stdout, $stderr, 60);
$container.
" sh -c 'mv /tmp/code.tar.gz /usr/local/src/code.tar.gz && tar -zxf /usr/local/src/code.tar.gz --strip 1 && rm /usr/local/src/code.tar.gz'"
, '', $stdout, $stderr, 60);
if($exitCodeUntar !== 0) {
throw new Exception('Failed to extract tar: '.$stderr);