Use template for mktemp

This commit is contained in:
Ajeet D'Souza 2025-11-18 03:48:10 +05:30
parent fcce9804a7
commit 22aa8722c4
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ main() {
# Create and enter a temporary directory.
local _tmp_dir
_tmp_dir="$(mktemp -d)" || err "mktemp: could not create temporary directory"
_tmp_dir="$(mktemp -d zoxide_XXXXX)" || err "mktemp: could not create temporary directory"
cd "${_tmp_dir}" || err "cd: failed to enter directory: ${_tmp_dir}"
# Download and extract zoxide.