fix sed statement

This commit is contained in:
RealStickman 2021-10-24 14:01:30 +02:00
parent 122bde9619
commit 0469833bbf

View File

@ -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