bel 2023-10-11 20:28:30 -06:00
parent 6767833e8e
commit afa43aafdf
1 changed files with 3 additions and 2 deletions

View File

@ -4,12 +4,13 @@ set -o pipefail
set -e set -e
set -u set -u
if ! which firebase; then if tty && ! which firebase; then
f="$(mktemp)" f="$(mktemp)"
wget https://firebase.tools -O - > "$f" wget https://firebase.tools -O - > "$f"
export upgrade=true export upgrade=true
$(if tty &> /dev/null; then echo sudo; fi) sh "$f" sudo bash "$f"
fi fi
which firebase
outdir=./deploy outdir=./deploy