mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-06 14:07:49 +08:00
Update install.sh
修改 /bin/sh 为 /bin/bash
This commit is contained in:
parent
f00ae2b43d
commit
45cae46985
@ -1,4 +1,4 @@
|
|||||||
#! /bin/sh
|
#! /bin/bash
|
||||||
|
|
||||||
WORD_DIR=$(cd $(dirname $0); pwd)
|
WORD_DIR=$(cd $(dirname $0); pwd)
|
||||||
SERVICE_NAME="wvp"
|
SERVICE_NAME="wvp"
|
||||||
@ -13,7 +13,7 @@ if [ "$(id -u)" -ne 0 ]; then
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 当前目录直接搜索(不含子目录)
|
# 当前目录直接搜索(不含子目录) bugfix: 这里使用了需要bash才可以支持的内容
|
||||||
jar_files=(*.jar)
|
jar_files=(*.jar)
|
||||||
|
|
||||||
if [ ${#jar_files[@]} -eq 0 ]; then
|
if [ ${#jar_files[@]} -eq 0 ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user