Skip to content

Commit

Permalink
adding other warning message check
Browse files Browse the repository at this point in the history
  • Loading branch information
sweng66 committed Oct 31, 2024
1 parent 3680c37 commit b4e3e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file_uploader/upload_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ upload_file () {
# Check if the response contains a "detail" field with specific phrases
detail_message=$(echo "$response" | jq -r '.detail // empty')

if [[ "${detail_message}" == *"is currently in progress"* && "${detail_message}" == *"process is complete before uploading any files"* ]]; then
if [[ ("${detail_message}" == *"is currently in progress"* && "${detail_message}" == *"process is complete before uploading any files"*) || "${detail_message}" == *"Curated topic and entity tags or automated tags generated from your MOD"* ]]; then
echo "INFO: ${detail_message}"
return
fi
Expand Down

0 comments on commit b4e3e76

Please sign in to comment.