This commit is contained in:
darkclip committed 2024-01-05 20:45:28 +08:00
1 parent 5fea272f7a
commit 8842fc39c1
1 file changed
+2 -2
+2 -2
View File
@@ -238,8 +238,8 @@ main(){
fi;
;;
*)
if [ $(grep "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then
sed -i -r 's/Endpoint.*/Endpoint = '$endpoint'/' $CONFIG;
if [ $(grep -i "Endpoint" $CONFIG|awk '{print $3}') != $endpoint ]; then
sed -i -r 's/Endpoint.*/Endpoint = '$endpoint'/i' $CONFIG;
fi;
;;
esac;