mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
secure mktemp
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
selection="$(${megatools "ls"} | ${pkgs.fzf}/bin/fzf)"
|
||||
test -n "$selection" || exit 1
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
tmpdir="$(mktemp -p "$XDG_RUNTIME_DIR" -d)"
|
||||
trap clean EXIT
|
||||
clean() {
|
||||
rm -rf "$tmpdir"
|
||||
|
||||
Reference in New Issue
Block a user