From a4866d442c731e9acbf36ba4c918adad7cf90562 Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Tue, 5 Aug 2025 16:13:17 -0500 Subject: [PATCH] Remove bash script --- install_cli.sh | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100755 install_cli.sh diff --git a/install_cli.sh b/install_cli.sh deleted file mode 100755 index 0d39259..0000000 --- a/install_cli.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -set -e - -# Install op-cli -install_op_cli() { - # Create a temporary directory where the CLI is installed - OP_INSTALL_DIR="$(mktemp -d)" - if [[ ! -d "$OP_INSTALL_DIR" ]]; then - echo "Install dir $OP_INSTALL_DIR not found" - exit 1 - fi - echo "::debug::OP_INSTALL_DIR: ${OP_INSTALL_DIR}" - - # Get the latest stable version of the CLI - CLI_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]+')" - - if [[ "$OSTYPE" == "linux-gnu"* ]]; then - # Get runner's architecture - ARCH=$(uname -m) - if [[ "$(getconf LONG_BIT)" = 32 ]]; then - ARCH="386" - elif [[ "$ARCH" == "x86_64" ]]; then - ARCH="amd64" - elif [[ "$ARCH" == "aarch64" ]]; then - ARCH="arm64" - fi - - if [[ "$ARCH" != "386" ]] && [[ "$ARCH" != "amd64" ]] && [[ "$ARCH" != "arm" ]] && [[ "$ARCH" != "arm64" ]]; then - echo "Unsupported architecture for the 1Password CLI: $ARCH." - exit 1 - fi - - curl -sSfLo op.zip "https://cache.agilebits.com/dist/1P/op2/pkg/${CLI_VERSION}/op_linux_${ARCH}_${CLI_VERSION}.zip" - unzip -od "$OP_INSTALL_DIR" op.zip && rm op.zip - elif [[ "$OSTYPE" == "darwin"* ]]; then - curl -sSfLo op.pkg "https://cache.agilebits.com/dist/1P/op2/pkg/${CLI_VERSION}/op_apple_universal_${CLI_VERSION}.pkg" - pkgutil --expand op.pkg temp-pkg - tar -xvf temp-pkg/op.pkg/Payload -C "$OP_INSTALL_DIR" - rm -rf temp-pkg && rm op.pkg - else - echo "Operating system not supported yet for this GitHub Action: $OSTYPE." - exit 1 - fi -} - -install_op_cli