Commit 5dd3ca52 authored by Paul Wise's avatar Paul Wise

Allow the usertags scratch dir to be overridden on the command-line

Useful for testing new typo fixes before deploying them.
parent 006905eb
......@@ -38,7 +38,14 @@ copy () {
xargs --null --no-run-if-empty cp --target-directory "$dir"
}
scratchdir=/srv/scratch/qa.debian.org/usertags
if [ $# -eq 1 ] ; then
scratchdir="$1"
elif [ $# -eq 0 ] ; then
scratchdir=/srv/scratch/qa.debian.org/usertags
else
echo "Please pass a directory for the script to operate in" 1>&2
exit 1
fi
mkdir --parents "$scratchdir"
cd "$scratchdir"
rsync --timeout=60 --recursive --delete rsync://bugs-mirror.debian.org/bts-spool-index/user/ all/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment