diff --git a/snippets/1password.yml b/snippets/1password.yml index 7e4e5006c87d55884d8d5c38ec8229af57095b5e..464e84cc18f11567fa25716d63350579ddf23c3a 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 d054ed58a2cce900345d1088e86ac6d47b52bc02..7f90b323a28cf6f6a0bccc7aad2dae7ab3affc13 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