Use template for mktemp
This commit is contained in:
parent
fcce9804a7
commit
22aa8722c4
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue