Skip to content

Commit e3212cd

Browse files
authored
Use template for mktemp (#1140)
1 parent 0c55cb9 commit e3212cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ main() {
3131

3232
# Create and enter a temporary directory.
3333
local _tmp_dir
34-
_tmp_dir="$(mktemp -d)" || err "mktemp: could not create temporary directory"
34+
_tmp_dir="$(mktemp -d /tmp/zoxide_XXXXXX)" || err "mktemp: could not create temporary directory"
3535
cd "${_tmp_dir}" || err "cd: failed to enter directory: ${_tmp_dir}"
3636

3737
# Download and extract zoxide.

0 commit comments

Comments
 (0)