Skip to content

Commit

Permalink
rename storage override variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eritbh committed Jan 12, 2022
1 parent 4686c0c commit 4cf0be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Ensure that you also have the [1Password CLI](1password-cli) available as `op` v

Note that interactive execution is not supported for any of these scripts, since `op signin` is required for all scripts and itself requires interactive password input.

By default, the key storage location is `$TMPDIR/op-ssh-utils`, where `TMPDIR` defaults to `/dev/shm` or `/tmp`, whichever is available. The key storage location can be overridden for all commands with the `OP_KEY_STORAGE_LOCATION` environment variable.
By default, the key storage location is `$TMPDIR/op-ssh-utils`, where `TMPDIR` defaults to `/dev/shm` or `/tmp`, whichever is available. The key storage location can be overridden for all commands with the `OP_SSH_STORAGEDIR` environment variable.

### Create a new SSH item in the vault

Expand Down
2 changes: 1 addition & 1 deletion common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ -d /dev/shm ]; then
else
default_tmpdir="/tmp"
fi
export temp_storage_root="${OP_KEY_STORAGE_LOCATION:-${TMPDIR:-$default_tmpdir}/op-ssh-utils}"
export temp_storage_root="${OP_SSH_STORAGEDIR:-${TMPDIR:-$default_tmpdir}/op-ssh-utils}"

# Signs into `op` or exits the script
function op_signin {
Expand Down

0 comments on commit 4cf0be1

Please sign in to comment.