fix sed statement
This commit is contained in:
parent
122bde9619
commit
0469833bbf
@ -408,9 +408,7 @@ EOF
|
||||
|
||||
# automatically add ssh keys to agent
|
||||
if ! grep -q "AddKeysToAgent yes" "$HOME/.ssh/config"; then
|
||||
sed -i '' '1i\
|
||||
AddKeysToAgent yes
|
||||
' "$HOME/.ssh/config"
|
||||
sed -i '1s/^/AddKeysToAgent yes\n/' "$HOME/.ssh/config"
|
||||
echo works
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user