From e07cc6ed119ac3eb865450907375aef5ccd358d1 Mon Sep 17 00:00:00 2001 From: Pascal Sick Date: Tue, 21 Oct 2025 18:55:34 +0200 Subject: [PATCH] fix: add directory to path, moving binary requires elevated privileges --- snippets/1password.yml | 3 ++- snippets/hashicorp.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/snippets/1password.yml b/snippets/1password.yml index 7e4e500..464e84c 100644 --- a/snippets/1password.yml +++ b/snippets/1password.yml @@ -13,4 +13,5 @@ - gpg --keyserver keyserver.ubuntu.com --receive-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22 - gpg --verify op.sig op - rm -f op.zip op.sig - - mv op /usr/local/bin + # we add current directory to PATH, moving the file to /usr[/local]/bin requires elevated privileges + - export PATH=$PATH:$PWD diff --git a/snippets/hashicorp.yml b/snippets/hashicorp.yml index d054ed5..7f90b32 100644 --- a/snippets/hashicorp.yml +++ b/snippets/hashicorp.yml @@ -13,4 +13,5 @@ - grep vault_${VAULT_VERSION}_${VAULT_OS}_${VAULT_ARCH}.zip vault_${VAULT_VERSION}_SHA256SUMS | sha256sum -c - - unzip vault_${VAULT_VERSION}_${VAULT_OS}_${VAULT_ARCH}.zip - rm -f LICENSE.txt vault_${VAULT_VERSION}_${VAULT_OS}_${VAULT_ARCH}.zip - - mv vault /usr/local/bin + # we add current directory to PATH, moving the file to /usr[/local]/bin requires elevated privileges + - export PATH=$PATH:$PWD -- GitLab