change === and >>> to ::*** and ***::
This commit is contained in:
10
proxy.sh
10
proxy.sh
@@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "#<<< Please run with 'source proxy.sh', otherwise it has no effect on the current shell"
|
||||
echo "::*** Please run with 'source proxy.sh', otherwise it has no effect on the current shell"
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
proxySwitch="$1"
|
||||
else
|
||||
echo "#<<< 开启或关闭网络代理? [s/1] for start, [t/0] for terminate, [anything else] for no change."
|
||||
read -p "#>>> " proxySwitch
|
||||
echo "::*** 开启或关闭网络代理? [s/1] for start, [t/0] for terminate, [anything else] for no change."
|
||||
read -p "***:: " proxySwitch
|
||||
fi
|
||||
|
||||
# to reset port to empty, otherwise the second run of this script will not ask for port.
|
||||
@@ -14,10 +14,10 @@ PORT=
|
||||
PORTDEFAULT=20170
|
||||
# function proxy() {
|
||||
if [ "$proxySwitch" == "s" ] || [ "$proxySwitch" == "1" ]; then
|
||||
echo "#<<< Proxy server running on [port number] or [leave blank] for default $PORTDEFAULT (20170 for v2ray2, or 7897 for clash verge)"
|
||||
echo "::*** Proxy server running on [port number] or [leave blank] for default $PORTDEFAULT (20170 for v2ray2, or 7897 for clash verge)"
|
||||
while [ ! "$PORT" ]
|
||||
do
|
||||
read -p "#>>> " PORT
|
||||
read -p "***:: " PORT
|
||||
if [ ! "$PORT" ]
|
||||
then
|
||||
PORT=$PORTDEFAULT
|
||||
|
||||
Reference in New Issue
Block a user