tempdir instead of ./deploy

main
bel 2023-10-11 20:33:24 -06:00
parent 0735f99f65
commit 97e5f3150f
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ if tty && ! which firebase; then
fi fi
which firebase which firebase
outdir=./deploy outdir=$(mktemp -d)
cleanup() {
rm -rf "$outdir"
}
trap cleanup EXIT
rm -rf $outdir rm -rf $outdir
mkdir -p $outdir/public mkdir -p $outdir/public