Skip to content

Commit 92f5913

Browse files
committed
temp dir
Signed-off-by: Julio Jimenez <julio@clickhouse.com>
1 parent 8a22677 commit 92f5913

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ main() {
183183

184184
# Temporary files
185185
local temp_dir
186-
temp_dir=$(mktemp -d)
186+
if ! temp_dir=$(mktemp -d); then
187+
log_error "Failed to create temporary directory"
188+
exit 1
189+
fi
187190
local original_sbom="$temp_dir/original_sbom.json"
188191
local cyclonedx_sbom="$temp_dir/cyclonedx_sbom.json"
189192

0 commit comments

Comments
 (0)