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