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