feat: add warning prompt information
This commit is contained in:
1 file changed
+7
-3
+7
-3
@@ -56,9 +56,13 @@ function check_rclone_connection() {
|
|||||||
if [[ "$1" == "all" ]]; then
|
if [[ "$1" == "all" ]]; then
|
||||||
color red "storage system connection failure exists"
|
color red "storage system connection failure exists"
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ "$1" == "any" && "${ERROR_COUNT}" -eq "${#RCLONE_REMOTE_LIST[@]}" ]]; then
|
elif [[ "$1" == "any" ]]; then
|
||||||
color red "all storage system connections failed"
|
if [[ "${ERROR_COUNT}" -eq "${#RCLONE_REMOTE_LIST[@]}" ]]; then
|
||||||
exit 1
|
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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user