]> Wikimedia Canada | Git repositories - eccc_to_commons.git/blobdiff - mediawiki_post.sh
Add 1s wait after successful upload to prevent flooding server
[eccc_to_commons.git] / mediawiki_post.sh
index b0d0127dea98f366acf7258281de918998b2e93f..95c8d56be3d38c63fb184b5d4fc440ba4387caae 100755 (executable)
@@ -118,11 +118,10 @@ do
        case "${RESULT}" in
        Success)
                echo "Everything went right. Continue…"
+               sleep 1
                ;;
        *)
                echo "Unknown code: ${RESULT}. Exiting."
                exit 1
        esac
-
-       exit 0
-done 9< <( find "${SOURCE}" -type f -print0 )
+done 9< <( find "${SOURCE}" -type f -name '*.tab' -print0 )