Use template for mktemp (#1140)
This commit is contained in:
parent
0c55cb9621
commit
e3212cdc08
|
|
@ -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 /tmp/zoxide_XXXXXX)" || 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