Bash
#!/bin/bash
# cd to script's directory.
cd "$(dirname "${BASH_SOURCE[0]}")"
firebase use cv-development
CURRENT_PROJECT=$(firebase use)
if [ $CURRENT_PROJECT != "cv-development" ]; then
echo "Error: was not able to switch project id."
exit 1
fi
if [ "$#" -eq 0 ]; then
echo "Deploying all functions."
firebase deploy --only functions
else
echo "Deploying only some functions, as specified by: $*"
firebase deploy --only $*
fi
Haskell
fac 0 = 1
fac n = n * fac (n-1)
main = print (fac 42)
HTML
<html>
<head>
<title>Whoa</title>
</head>
</html>
Link caption