Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit ffaea29

Browse files
committed
Export temp_storage_root directly
1 parent 9e828e9 commit ffaea29

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [ -d /dev/shm ]; then
55
else
66
default_tmpdir="/tmp"
77
fi
8-
export default_temp_storage_root="${OP_KEY_STORAGE_LOCATION:-${TMPDIR:-$default_tmpdir}/op-ssh-utils}"
8+
export temp_storage_root="${OP_KEY_STORAGE_LOCATION:-${TMPDIR:-$default_tmpdir}/op-ssh-utils}"
99

1010
# Signs into `op` or exits the script
1111
function op_signin {

op-add-identities

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
dirname="$(dirname "$(realpath $0)")"
44
source "$dirname/common.sh"
55

6-
# TODO: allow overriding this with an option
7-
temp_storage_root="$default_temp_storage_root"
8-
96
op_signin $@
107

118
# Get all the items we care about

op-create-identity

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ done
8686
shift $((OPTIND-1))
8787
[ "${1:-}" = "--" ] && shift
8888

89-
# TODO: allow overriding this with an option
90-
temp_storage_root="$default_temp_storage_root"
91-
9289
if [ -z $ssh_host ]; then
9390
echo "Option -H is required" >&2
9491
print_help

0 commit comments

Comments
 (0)