fix: fix the error in determining the existence of a file or folder (fixed #19)

This commit is contained in:
ttionya
2021-03-03 20:33:28 +08:00
parent de9c941810
commit 726eb8708a
+1 -1
View File
@@ -90,7 +90,7 @@ function upload() {
color blue "upload backup file to storage system"
# upload file not exist
if [[ ! -f "${UPLOAD_FILE}" ]]; then
if [[ ! -e "${UPLOAD_FILE}" ]]; then
color red "upload file not found"
send_mail_content "FALSE" "File upload failed at $(date +"%Y-%m-%d %H:%M:%S %Z"). Reason: Upload file not found."