diff --git a/index.sh b/index.sh index c4bb3c6..890de97 100644 --- a/index.sh +++ b/index.sh @@ -5,7 +5,7 @@ if [ $# -eq 0 ]; then PORT=6001 echo "未提供端口号,使用默认端口 $PORT" else - PORT=\$1 # 从命令行参数获取端口号 + PORT=$1 # 从命令行参数获取端口号 fi # 定义文件