From c9e0877220002cbca51f486cfc6791abfc1432e3 Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 26 Jun 2024 19:50:06 +0800 Subject: [PATCH] bug fix --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 51fe31d..3a90853 100755 --- a/install.sh +++ b/install.sh @@ -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}" 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}" 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