Skip to content

Commit

Permalink
fix(client): improve reliability of file upload to pod (#6212)
Browse files Browse the repository at this point in the history
Fix: #6212

Signed-off-by: Florian Hussonnois <[email protected]>
  • Loading branch information
fhussonnois committed Jul 31, 2024
1 parent 74ba924 commit 91aa66c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private static void addFileToTar(String fileName, File file, TarArchiveOutputStr

static String createExecCommandForUpload(String file) {
return String.format(
"mkdir -p %s && cat - > %s", shellQuote(getDirectoryFromFile(file)), shellQuote(file));
"mkdir -p %s && cat - > %s && echo $?", shellQuote(getDirectoryFromFile(file)), shellQuote(file));
}

private static String ensureEndsWithSlash(String path) {
Expand Down

0 comments on commit 91aa66c

Please sign in to comment.