[BETA] Fix sed replacement for duplicate includes REF: #287

This commit is contained in:
Mitchell Krog 2019-07-31 13:10:04 +02:00
parent c1c125143d
commit 2009e79024
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43

View file

@ -323,7 +323,8 @@ check_nginx_directives() {
printf "${BOLDYELLOW}setup will fix conflict from: '$x' in $bot_config${RESET}\n"
if [ "$DRY_RUN" = "N" ]; then
printf "${BOLDRED}disabling '$x' in: $bot_config${RESET}\n"
sed "s|$x|#$x|" $bot_config | grep $x
#sed "s|$x|#$x|" $bot_config | grep $x
sed -i "s/$x/#$x/g" $bot_config | grep $x
printf " ${BOLDGREEN}disabled OK${RESET}\n\n"
fi
fi