Change if again

This commit is contained in:
RealStickman 2021-10-24 13:59:49 +02:00
parent c60a66b32b
commit 122bde9619

View File

@ -407,10 +407,11 @@ cat <<EOF
EOF
# automatically add ssh keys to agent
if grep -L "AddKeysToAgent yes" "$HOME/.ssh/config"; then
if ! grep -q "AddKeysToAgent yes" "$HOME/.ssh/config"; then
sed -i '' '1i\
AddKeysToAgent yes
' "$HOME/.ssh/config"
echo works
fi
# set permissions for sudoers.d to root only