Address some shellcheckery

This commit is contained in:
Dan Buch 2020-03-04 20:46:02 -05:00
parent cbd9995458
commit 7a89a522cc
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
2 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ _run_system0() {
pg_ctlcluster 11 main start
sudo -H -u postgres bash <<PGSETUP
set -o allexport
# shellcheck source=/dev/null
source /tmp/app.env
createuser spoke || true
createdb --owner=spoke spoke || true
@ -97,6 +98,7 @@ _run_spoke0() {
set -o xtrace
set -o allexport
# shellcheck source=/dev/null
source /tmp/app.env
set +o allexport
@ -116,6 +118,7 @@ _run_spoke0() {
https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
set +o errexit
set +o xtrace
# shellcheck source=/dev/null
source ~/.nvm/nvm.sh
set -o xtrace
set -o errexit

View File

@ -4,6 +4,7 @@ set -o pipefail
main() {
cd /home/spoke/app
# shellcheck source=/dev/null
source ~/.nvm/nvm.sh
nvm use
exec npm start