安装脚本检测有没有下载成功
This commit is contained in:
parent
0c98172c80
commit
aca18a9c0a
@ -51,9 +51,10 @@ else
|
|||||||
url='https://github.com/lsy2246/linuxtool.git'
|
url='https://github.com/lsy2246/linuxtool.git'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "正在下载脚本中"
|
||||||
git clone "$url" "$path/linuxtool" &> /dev/null
|
git clone "$url" "$path/linuxtool" &> /dev/null
|
||||||
|
|
||||||
if [[ -d "${path}/linuxtool" ]];then
|
if ! [[ -d "${path}/linuxtool" ]];then
|
||||||
echo "脚本下载失败"
|
echo "脚本下载失败"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user