summaryrefslogtreecommitdiffstats
path: root/bin/launch
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-16 23:15:09 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-16 23:15:09 -0400
commit6c58c57881299a2932360a7726aa6f8997476773 (patch)
treee4a7472aee5b91cf3b5ac800b5b540676e714b09 /bin/launch
parentbd4b8406ddf02f6223fc1f508c4102d42765ead7 (diff)
downloadpuppet-tozt-6c58c57881299a2932360a7726aa6f8997476773.tar.gz
puppet-tozt-6c58c57881299a2932360a7726aa6f8997476773.zip
more script fixes
Diffstat (limited to 'bin/launch')
-rwxr-xr-xbin/launch5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/launch b/bin/launch
index 50c2b72..ee30dba 100755
--- a/bin/launch
+++ b/bin/launch
@@ -2,8 +2,13 @@
set -eu
set -o pipefail
+script_path="$(realpath "$(dirname "$0")")"
+secrets_bin="${script_path}/secrets"
+
case "$1" in
tozt|algo)
+ "$secrets_bin" open
+ trap '"$secrets_bin" close' EXIT
"$(dirname "$0")/helpers/launch-$1"
;;
*)