From 00df885b45322a1d3b56562fef908f1c960b4690 Mon Sep 17 00:00:00 2001 From: CraigSterrett Date: Wed, 13 Nov 2019 09:48:59 -0800 Subject: [PATCH] Fixed code for no_proxy in setup_system.sh (#265) The sed command for updating no-proxy settings in the proxy.sh file was not working. I made it match the above command which was working for /etc/environment. Signed-off-by: Craig Sterrett --- clr-k8s-examples/setup_system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clr-k8s-examples/setup_system.sh b/clr-k8s-examples/setup_system.sh index 7d43197..91c99ab 100755 --- a/clr-k8s-examples/setup_system.sh +++ b/clr-k8s-examples/setup_system.sh @@ -151,7 +151,7 @@ function setup_proxy() { sed_val=${ADD_NO_PROXY//\//\\/} [ -f /etc/environment ] && sudo sed -i "/no_proxy/I s/$/,${sed_val}/g" /etc/environment if [ -f /etc/profile.d/proxy.sh ]; then - sudo sed -i "/no_proxy/I s/\"$/,${sed_val}\"/g" /etc/profile.d/proxy.sh + sudo sed -i "/no_proxy/I s/$/,${sed_val}/g" /etc/profile.d/proxy.sh else echo "Warning, failed to find /etc/profile.d/proxy.sh to edit no_proxy line" fi