Skip to content

Commit

Permalink
use tmpdir explicitly (#13)
Browse files Browse the repository at this point in the history
* use tmpdir explicitly

Fixed #10

* use -t for compat

`-t` is deprecated on GNU coreutils, but still preferred since `--tmpdir` option doesn't exist on MacOS.
  • Loading branch information
cometkim authored Sep 9, 2023
1 parent 2bc9b28 commit ceb2367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function get_source_url() {

function get_temp_dir() {
local tmpdir
tmpdir=$(mktemp -d asdf-bun.XXXX)
tmpdir=$(mktemp -t -d asdf-bun.XXXX)

echo -n "$tmpdir"
}
Expand Down

0 comments on commit ceb2367

Please sign in to comment.