From e490071af6b9c613de747a6cd23f28c37730b3ea Mon Sep 17 00:00:00 2001 From: Jon Prentice <4913666+jon77p@users.noreply.github.com> Date: Fri, 29 Dec 2023 19:38:08 -0800 Subject: [PATCH] testing --- cdktf/secrets.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cdktf/secrets.ts b/cdktf/secrets.ts index 2f6c9f8a8..2d9742d0f 100644 --- a/cdktf/secrets.ts +++ b/cdktf/secrets.ts @@ -7,14 +7,15 @@ import { Construct } from "constructs"; function Setup1Password(scope: Construct) { const opPath = "tools/op" const install = new localExec.LocalExec(scope, "1password-install", { - cwd: "tools", + cwd: ".", command: `ARCH="amd64"; \ OP_VERSION="v$(curl https://app-updates.agilebits.com/check/1/0/CLI2/en/2.0.0/N -s | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')"; \ curl -sSfo op.zip \ https://cache.agilebits.com/dist/1P/op2/pkg/"$OP_VERSION"/op_linux_"$ARCH"_"$OP_VERSION".zip \ - && unzip -od . op.zip \ + && mkdir -p tools \ + && unzip -od tools op.zip \ && rm op.zip \ - && chmod 0755 op \ + && chmod 0755 tools/op \ && export PATH="$PATH:$(pwd)/tools" \ && echo $PATH \ && op --version`