From 9122a1ae1e50462b0c128c7ddb42162fc8b0eb72 Mon Sep 17 00:00:00 2001 From: Emanuele Aina <emanuele.aina@collabora.com> Date: Thu, 9 Dec 2021 00:37:15 +0100 Subject: [PATCH] Use $TMPDIR as the default workdir The `$TMPDIR` is generally not shared in containers setup, so there's less chance to involuntarily use cached outdated files. Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com> --- update_test_binaries.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_test_binaries.sh b/update_test_binaries.sh index 5470bec..4740a95 100755 --- a/update_test_binaries.sh +++ b/update_test_binaries.sh @@ -3,6 +3,7 @@ set -ex branch=master +workdir=${TMPDIR:-/tmp} usage() { @@ -11,7 +12,7 @@ usage() echo " -l, --release RELEASE_VERSION The release version to download packages/binaries from (see https://repositories.apertis.org/apertis/dists/)" echo " -r, --repository REPOSITORY The name of the repository to update (under https://gitlab.apertis.org/tests)" echo " -b, --branch BRANCH The branch in the repository to push the changes to (default: master)" - echo " -w, --workdir WORKDIR The workdir (default: current dir)" + echo " -w, --workdir WORKDIR The workdir (default: $workdir)" echo " -n, --dry-run Do not attempt to push changes to repository (default: push)" echo " -h, --help Display this help and exit" } -- GitLab