Fix if statement

This commit is contained in:
RealStickman 2021-10-24 13:57:29 +02:00
parent 35e9d4c6c9
commit c60a66b32b

View File

@ -407,7 +407,7 @@ 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 -L "AddKeysToAgent yes" "$HOME/.ssh/config"; then
sed -i '' '1i\ sed -i '' '1i\
AddKeysToAgent yes AddKeysToAgent yes
' "$HOME/.ssh/config" ' "$HOME/.ssh/config"