首页 新闻 会员 周边

linux shell 脚本转成window bat 脚本

0
[待解决问题]

PRG="$0"
PRGDIR=dirname "$PRG"
EXECUTABLE=porter-boot

if [ "$1" = "debug" ]; then
if [ -z "$2" ]; then
DEBUG_PORT=5555
else
DEBUG_PORT=$2
fi
export JAVA_OPTS=" $JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n"
fi

save_spring () {
index=0
declare -a temp_array
for i do
if [[ "$i" =~ ^--[a-zA-Z].* ]];then
temp_array[index]=${i}
index=$((index+1));
fi
done
echo ${temp_array[@]}
}

SPRING_ARGS=$(save_spring "$@")

nohup "$PRGDIR/$EXECUTABLE" $SPRING_ARGS > /dev/null 2>&1 &

larry_御衡健康创始人的主页 larry_御衡健康创始人 | 菜鸟二级 | 园豆:202
提问于:2018-12-05 14:34
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册