dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit dfab6b0a0c12d68de2231d5d9b06a6c66278c01f
parent 4b1275743642b5acbe001ed3c67371ff127404d7
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 23 Dec 2021 23:00:04 +0000

.s/b/plumb: cleanup nicer

Diffstat:
M.scripts/bin/plumb | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb @@ -90,6 +90,10 @@ fetch(){ $proxy curl $([ "$verbose" != "y" ] && echo -s) "$(echo "$arg" | sed -E 's/]|\[|}|\{/\\&/g')" > "$file" export orig="$arg" export arg="$file" + + [ -z "$exittrap" ] && exittrap=":" + exittrap="$exittrap; rm -rf \"$file\"" + trap "$exittrap" EXIT } mime(){ @@ -106,6 +110,9 @@ case "$1" in ;; esac +[ -n "$PLUMB" ] && exit +export PLUMB="$$" + for arg in "$@" do export norun=0