Browse Source

bug fix

master
filesite 5 months ago
parent
commit
c9e0877220
  1. 10
      install.sh

10
install.sh

@ -240,7 +240,7 @@ docker_installed=$? @@ -240,7 +240,7 @@ docker_installed=$?
if [ $docker_installed -eq 0 ]; then
getCpuInfo
detect_domain='https://desktop.docker.com'
detect_domain='desktop.docker.com'
echo "正在检测是否能连接[${detect_domain}],请稍后..."
detectDomainCanConnect "${detect_domain}"
connect_res=$?
@ -314,6 +314,10 @@ detectDockerContainerExists "${containerName}" @@ -314,6 +314,10 @@ detectDockerContainerExists "${containerName}"
containerExist=$?
if [ $containerExist -eq 0 ]; then
read -p "请输入相册保存路径后回车(默认保存到桌面~/Desktop/Album_by_filesite): " album_path
if [ -z "${album_path}" ]; then
album_path="~/Desktop/Album_by_filesite"
fi
if [ ! -d "${album_path}" ]; then
read -p "目录【${album_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then
@ -344,6 +348,10 @@ detectDockerContainerExists "${containerName}" @@ -344,6 +348,10 @@ detectDockerContainerExists "${containerName}"
containerExist=$?
if [ $containerExist -eq 0 ]; then
read -p "请输入视频保存路径后回车(默认保存到桌面~/Desktop/Videos_by_filesite): " vlog_path
if [ -z "${vlog_path}" ]; then
vlog_path="~/Desktop/Videos_by_filesite"
fi
if [ ! -d "${vlog_path}" ]; then
read -p "目录【${vlog_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then

Loading…
Cancel
Save