From 700372c3cf8433ed8e4fd643642f4545b14e6f21 Mon Sep 17 00:00:00 2001 From: Pierre Choffet Date: Thu, 5 Mar 2020 23:48:59 -0500 Subject: [PATCH] Restrict uploaded file pattern --- mediawiki_post.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mediawiki_post.sh b/mediawiki_post.sh index b0d0127..0e21026 100755 --- a/mediawiki_post.sh +++ b/mediawiki_post.sh @@ -19,7 +19,8 @@ set -ex set -o pipefail -ENDPOINT='https://commons.wikimedia.org/w/api.php' +#ENDPOINT='https://commons.wikimedia.org/w/api.php' +ENDPOINT='http://mediawiki.banquise.tf/api.php' NAMESPACE='Data' USERNAME_PATH='login_username' @@ -123,6 +124,4 @@ do 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 ) -- 2.42.0