feat: add warning prompt information

This commit is contained in:
ttionya committed 2025-01-16 11:32:44 +08:00
1 parent 2b8f41346b
commit 810fa92038
1 file changed
+7 -3
+7 -3
View File
@@ -56,9 +56,13 @@ function check_rclone_connection() {
if [[ "$1" == "all" ]]; then
color red "storage system connection failure exists"
exit 1
elif [[ "$1" == "any" && "${ERROR_COUNT}" -eq "${#RCLONE_REMOTE_LIST[@]}" ]]; then
color red "all storage system connections failed"
exit 1
elif [[ "$1" == "any" ]]; then
if [[ "${ERROR_COUNT}" -eq "${#RCLONE_REMOTE_LIST[@]}" ]]; then
color red "all storage system connections failed"
exit 1
else
color yellow "some storage system connections failed, but the backup will continue"
fi
fi
fi
}