Change if again
This commit is contained in:
parent
c60a66b32b
commit
122bde9619
@ -407,10 +407,11 @@ cat <<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# automatically add ssh keys to agent
|
# 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\
|
sed -i '' '1i\
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
' "$HOME/.ssh/config"
|
' "$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