about summary refs log tree commit diff
path: root/tools/bin/__dispatch.sh
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T13·13+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T13·13+0000
commit7158d56499ce7e87f45faa2461f6f787bcf83a10 (patch)
treea266f3362d6d0d062bc23c936b2212527ea23b37 /tools/bin/__dispatch.sh
parentda9dd45ebfb44fc80ec65913775e0e3973686221 (diff)
fix(tools): Correctly resolve kms_pass->pass r/209
The binary name doesn't match the one inside of the derivation, but
this is intentional.
Diffstat (limited to 'tools/bin/__dispatch.sh')
-rwxr-xr-xtools/bin/__dispatch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bin/__dispatch.sh b/tools/bin/__dispatch.sh
index 2342b9fd010a..473342769d57 100755
--- a/tools/bin/__dispatch.sh
+++ b/tools/bin/__dispatch.sh
@@ -7,7 +7,7 @@
 set -ueo pipefail
 
 readonly REPO_ROOT=$(dirname $0)/../..
-readonly TARGET_TOOL=$(basename $0)
+TARGET_TOOL=$(basename $0)
 
 case "${TARGET_TOOL}" in
   terraform)
@@ -24,6 +24,7 @@ case "${TARGET_TOOL}" in
     ;;
   kms_pass)
     attr="tools.kms_pass"
+    TARGET_TOOL="pass"
     ;;
   aoc2019)
     attr="tools.aoc2019.${1}"