Change if again
This commit is contained in:
parent
c60a66b32b
commit
122bde9619
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user