summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-11-20 11:36:05 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-11-20 11:36:05 +0100
commitc906c77632ac1442aaf74b0cd0e48bb04f7a491b (patch)
tree5597e02aea04de30f5c1e1f5e180130f80ba12b4
parentsh: add uv plugin (diff)
sh/tmp: add `--force` to `rm` for an edge case
-rw-r--r--dot_local/share/sh/tmp2
-rw-r--r--dot_local/share/sh/tmp.fish2
2 files changed, 2 insertions, 2 deletions
diff --git a/dot_local/share/sh/tmp b/dot_local/share/sh/tmp
index 1aeaea1..ecaf2ba 100644
--- a/dot_local/share/sh/tmp
+++ b/dot_local/share/sh/tmp
@@ -7,5 +7,5 @@ tt() {
local dir=$(mktemp -d)
[ -d "$dir" ] || return 1
cd "$dir"
- trap "rm -r '$dir'" EXIT
+ trap "rm -rf '$dir'" EXIT
}
diff --git a/dot_local/share/sh/tmp.fish b/dot_local/share/sh/tmp.fish
index 9fe3a84..c5e0913 100644
--- a/dot_local/share/sh/tmp.fish
+++ b/dot_local/share/sh/tmp.fish
@@ -7,5 +7,5 @@ function tt
set -l dir (mktemp -d)
test -d $dir || return 1
cd $dir
- trap "rm -r '$dir'" EXIT
+ trap "rm -rf '$dir'" EXIT
end