From c906c77632ac1442aaf74b0cd0e48bb04f7a491b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Wed, 20 Nov 2024 11:36:05 +0100 Subject: sh/tmp: add `--force` to `rm` for an edge case --- dot_local/share/sh/tmp | 2 +- dot_local/share/sh/tmp.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_local/share/sh') 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 -- cgit v1.2.3