From 953b51736f14122b9d5441a256ca99da3157d01b Mon Sep 17 00:00:00 2001 From: volodymyrZotov Date: Mon, 15 Aug 2022 17:20:19 +0300 Subject: [PATCH] extract op to proper path --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6210061..2658d61 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -32,10 +32,10 @@ unset_prev_secrets() { install_op_cli() { if [[ "$OSTYPE" == "linux-gnu"* ]]; then curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/v2.6.0-beta.06/op_linux_amd64_v2.6.0-beta.06.zip" - unzip -od ./op op.zip && rm op.zip + unzip -od /usr/local/bin/ op.zip && rm op.zip elif [[ "$OSTYPE" == "darwin"* ]]; then curl -sSfLo op.tar.gz "https://cache.agilebits.com/dist/1P/op2/pkg/v2.6.0-beta.06/1password-cli_v2.6.0-beta.06_darwin_amd64.tar.gz" - mkdir ./op && tar -xf op.tar.gz -C ./op + tar -xf op.tar.gz -C /usr/local/bin/ && rm op.tar.gz fi }