[Git][debian-gis-team/osmosis][master] Don't make wget command verbose.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Apr 17 20:29:48 BST 2025
Bas Couwenberg pushed to branch master at Debian GIS Project / osmosis
Commits:
d3a87914 by Bas Couwenberg at 2025-04-17T21:29:38+02:00
Don't make wget command verbose.
- - - - -
1 changed file:
- debian/tests/pbf2osm
Changes:
=====================================
debian/tests/pbf2osm
=====================================
@@ -10,8 +10,10 @@ TEMPDIR="$(mktemp -d)"
cd "${TEMPDIR}" || exit 1
-echo -e "\nDownloading PBF file: ${PBF_URL}"
-wget "${PBF_URL}" -O "${PBF_FILE}"
+CMD=("wget" "-q" "${PBF_URL}" "-O" "${PBF_FILE}")
+
+echo "Downloading PBF file: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -21,9 +23,11 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
+echo
+
CMD=("osmosis" "--read-pbf" "file=${PBF_FILE}" "--write-xml" "file=${XML_FILE}")
-echo -e "\nConverting PBF to XML: ${CMD[@]}"
+echo "Converting PBF to XML: ${CMD[@]}"
${CMD[@]}
RC=$?
@@ -34,9 +38,11 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
+echo
+
CMD=("osmosis" "--read-pbf" "file=${PBF_FILE}" "--report-entity" "file=${PBF_REPORT}")
-echo -e "\nGenerating PBF report: ${CMD[@]}"
+echo "Generating PBF report: ${CMD[@]}"
${CMD[@]}
RC=$?
@@ -47,9 +53,11 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
+echo
+
CMD=("osmosis" "--read-xml" "file=${XML_FILE}" "--report-entity" "file=${XML_REPORT}")
-echo -e "\nGenerating XML report: ${CMD[@]}"
+echo "Generating XML report: ${CMD[@]}"
${CMD[@]}
RC=$?
@@ -60,9 +68,11 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
+echo
+
CMD=("diff" "-u" "${PBF_REPORT}" "${XML_REPORT}")
-echo -e "\nComparing PBF and XML reports: ${CMD[@]}"
+echo "Comparing PBF and XML reports: ${CMD[@]}"
${CMD[@]}
RC=$?
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmosis/-/commit/d3a879149c31bdb9d7a60ce9158f1781cd8a5578
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/osmosis/-/commit/d3a879149c31bdb9d7a60ce9158f1781cd8a5578
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20250417/8e447df8/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list