安装脚本检测有没有下载成功

This commit is contained in:
lsy 2024-09-24 02:06:59 +08:00
parent 0c98172c80
commit aca18a9c0a

View File

@ -51,9 +51,10 @@ else
url='https://github.com/lsy2246/linuxtool.git'
fi
echo "正在下载脚本中"
git clone "$url" "$path/linuxtool" &> /dev/null
if [[ -d "${path}/linuxtool" ]];then
if ! [[ -d "${path}/linuxtool" ]];then
echo "脚本下载失败"
exit
fi