shell 中 [ 改为 [[

This commit is contained in:
whyour
2021-11-01 23:04:10 +08:00
parent 8d21401f88
commit 2ff3869608
6 changed files with 45 additions and 45 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ apk --no-cache add -f zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev
echo -e "\nbot依赖安装成功...\n"
echo -e "2、下载bot所需文件...\n"
if [ ! -d ${repo_path}/.git ]; then
if [[ ! -d ${repo_path}/.git ]]; then
rm -rf ${repo_path}
git_clone_scripts ${url} ${repo_path} "main"
fi