10 lines
208 B
Fish
10 lines
208 B
Fish
function test_identities
|
|
ssh-add -l | grep "The agent has no identities" > /dev/null
|
|
if [ $status -eq 0 ]
|
|
ssh-add
|
|
if [ $status -eq 2 ]
|
|
start_agent
|
|
end
|
|
end
|
|
end
|
|
|