[Git][debian-gis-team/ogdi-dfsg][master] Don't make wget & tar commands verbose.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Apr 17 20:27:09 BST 2025
Bas Couwenberg pushed to branch master at Debian GIS Project / ogdi-dfsg
Commits:
32257459 by Bas Couwenberg at 2025-04-17T21:27:01+02:00
Don't make wget & tar commands verbose.
- - - - -
1 changed file:
- debian/tests/ogdi-bin
Changes:
=====================================
debian/tests/ogdi-bin
=====================================
@@ -8,8 +8,10 @@ TEMPDIR="$(mktemp -d)"
cd "${TEMPDIR}" || exit 1
-echo -e "\nDownloading dataset: ${DATASET_URL}"
-wget "${DATASET_URL}" -O "${DATASET_FILE}" 2>&1
+CMD=("wget" "-q" "${DATASET_URL}" "-O" "${DATASET_FILE}")
+
+echo "Downloading dataset: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -19,8 +21,12 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
-echo -e "\nUnpacking dataset: ${DATASET_FILE}"
-tar xavf "${DATASET_FILE}" 2>&1
+echo
+
+CMD=("tar" "xaf" "${DATASET_FILE}")
+
+echo "Unpacking dataset: ${CMD[@]}"
+${CMD[@]}
RC=$?
if [ "${RC}" -ne 0 ]; then
@@ -30,9 +36,11 @@ if [ "${RC}" -ne 0 ]; then
exit "${RC}"
fi
+echo
+
CMD=("ogdi_info" "-u" "gltp:/vrf/${TEMPDIR}/${DATASET_DIR}/data/vpf/vm2alv2/texash")
-echo -e "\nExecuting: ${CMD[@]}"
+echo "Executing: ${CMD[@]}"
${CMD[@]}
RC=$?
View it on GitLab: https://salsa.debian.org/debian-gis-team/ogdi-dfsg/-/commit/32257459be85c5d47a8d5ec7a5bb6c59fe9632ae
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/ogdi-dfsg/-/commit/32257459be85c5d47a8d5ec7a5bb6c59fe9632ae
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/30a00f65/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list