mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 07:07:03 +08:00
fix(sagent): secure file location
This commit is contained in:
parent
a45828ea43
commit
2beb9ebbf9
|
@ -61,7 +61,8 @@ reset()
|
||||||
|
|
||||||
all()
|
all()
|
||||||
{
|
{
|
||||||
local agent_file="/tmp/piv-agent-$(whoami)"
|
test -d ~/.ssh || mkdir ~/.ssh
|
||||||
|
local agent_file=~/.ssh/agent-$(whoami)
|
||||||
if [[ -f $agent_file ]]; then
|
if [[ -f $agent_file ]]; then
|
||||||
source $agent_file > /dev/null
|
source $agent_file > /dev/null
|
||||||
else
|
else
|
||||||
|
|
|
@ -49,7 +49,7 @@ alias p114
|
||||||
alias cbds
|
alias cbds
|
||||||
which riot
|
which riot
|
||||||
sagt
|
sagt
|
||||||
test -f "/tmp/piv-agent-$(whoami)"
|
test -f ~/.ssh/agent-$(whoami)
|
||||||
gbes || which gbes
|
gbes || which gbes
|
||||||
|
|
||||||
# check update
|
# check update
|
||||||
|
|
Loading…
Reference in New Issue
Block a user