Skip to content

Commit 2a75b8a

Browse files
lens0021claude
andauthored
refactor: Use descriptive temp directory name (#73)
Change temp directory name from "tmp.XXXXXXXXXX" to "amber_download.XXXXXXXXXX" for better clarity when debugging. This makes it easier to identify the purpose of the temporary directory in /tmp when troubleshooting issues. Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent affd08e commit 2a75b8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ else
665665
exit 1
666666
fi
667667
echo "::debug::Downloading from ${url_22}"
668-
temp_dir_create__55_v0 "tmp.XXXXXXXXXX" 1 1
668+
temp_dir_create__55_v0 "amber_download.XXXXXXXXXX" 1 1
669669
__status=$?
670670
temp_dir_28="${ret_temp_dir_create55_v0}"
671671
file_download__160_v0 "${url_22}" "${temp_dir_28}/amber.tar.xz"

src/main.ab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ if file_exists("{cache_path}/amber") {
154154
}
155155

156156
echo "::debug::Downloading from {url}"
157-
const temp_dir = trust temp_dir_create("tmp.XXXXXXXXXX", true, true)
157+
const temp_dir = trust temp_dir_create("amber_download.XXXXXXXXXX", true, true)
158158
trust file_download(url, "{temp_dir}/amber.tar.xz")
159159
trust file_extract("{temp_dir}/amber.tar.xz", temp_dir)
160160

0 commit comments

Comments
 (0)