From 261e7f7fd978a1243b051d419b877d61ec22dcec Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 21 Apr 2021 16:29:24 -0400 Subject: [PATCH] sed and grep need input files --- setup/so-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 86ef60203..e1467191e 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2685,8 +2685,8 @@ set_updates() { if [ "$MANAGERUPDATES" = '1' ]; then if [ "$OS" = 'centos' ]; then if [[ ! $is_airgap ]] && ! ( grep -q "$MSRV" /etc/yum.conf); then - if grep -q "proxy="; then - sed -i "s/proxy=.*/proxy=http:\/\/$MSRV:3142/" + if grep -q "proxy=" /etc/yum.conf; then + sed -i "s/proxy=.*/proxy=http:\/\/$MSRV:3142/" /etc/yum.conf else echo "proxy=http://$MSRV:3142" >> /etc/yum.conf fi