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