From 97e5f3150f1f19291683e820fdac86db2c44e6c9 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 11 Oct 2023 20:33:24 -0600 Subject: [PATCH] tempdir instead of ./deploy --- deploy.firebase.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.firebase.sh b/deploy.firebase.sh index 194d4e2..4a38fa3 100755 --- a/deploy.firebase.sh +++ b/deploy.firebase.sh @@ -12,7 +12,11 @@ if tty && ! which firebase; then fi which firebase -outdir=./deploy +outdir=$(mktemp -d) +cleanup() { + rm -rf "$outdir" +} +trap cleanup EXIT rm -rf $outdir mkdir -p $outdir/public