diff options
author | Ben Sima <ben@bsima.me> | 2020-06-27 09:37:34 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-06-27 09:37:34 -0700 |
commit | 1c6f010df41e5cce38fe6657130a8a0a00e4dbad (patch) | |
tree | 4b74e3528a2629172eb899b2b7054014e5eecdc3 /turnkey | |
parent | 2400a1b9bcf7075c14a6bfbe2f42473faad479db (diff) |
turnkey: take an optional arg
Diffstat (limited to 'turnkey')
-rwxr-xr-x | turnkey | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1,12 +1,16 @@ #!/usr/bin/env bash set -ex lint -stuff=( - Biz.Cloud - Biz.Dev - Que.Prod - Hero.Prod -) +stuff=(${1}) +if [[ ${#stuff[@]} -eq 0 ]] +then + stuff=( + Biz.Cloud + Biz.Dev + Que.Prod + Hero.Prod + ) +fi for thing in ${stuff[@]} do bild $thing |