Merge pull request #2088 from rongzedong/patch-4

Update install.sh
This commit is contained in:
648540858 2026-03-02 10:51:01 +08:00 committed by GitHub
commit bf8707f4ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /bin/bash
WORD_DIR=$(cd $(dirname $0); pwd)
SERVICE_NAME="wvp"
@ -13,7 +13,7 @@ if [ "$(id -u)" -ne 0 ]; then
echo
fi
# 当前目录直接搜索(不含子目录)
# 当前目录直接搜索(不含子目录) bugfix 这里使用了需要bash才可以支持的内容
jar_files=(*.jar)
if [ ${#jar_files[@]} -eq 0 ]; then