summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-06-27 09:37:34 -0700
committerBen Sima <ben@bsima.me>2020-06-27 09:37:34 -0700
commit1c6f010df41e5cce38fe6657130a8a0a00e4dbad (patch)
tree4b74e3528a2629172eb899b2b7054014e5eecdc3
parent2400a1b9bcf7075c14a6bfbe2f42473faad479db (diff)
turnkey: take an optional arg
-rwxr-xr-xturnkey16
1 files changed, 10 insertions, 6 deletions
diff --git a/turnkey b/turnkey
index 5330ec4..f0efdb4 100755
--- a/turnkey
+++ b/turnkey
@@ -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