Sed didn't work
This commit is contained in:
parent
0469833bbf
commit
2cfef26cae
@ -408,8 +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 '1s/^/AddKeysToAgent yes\n/' "$HOME/.ssh/config"
|
echo 'AddKeysToAgent yes' | cat - "$HOME/.ssh/config" > temp && mv temp "$HOME/.ssh/config"
|
||||||
echo works
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set permissions for sudoers.d to root only
|
# set permissions for sudoers.d to root only
|
||||||
|
Loading…
Reference in New Issue
Block a user