[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: build: avoid using 'hash' a variable name, as it's a builtin command
Holger Levsen
holger at moszumanska.debian.org
Sat Mar 21 11:09:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 30706c84bc328c5d2cdec8a44a1e6f91a3f8b91f
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Sat Mar 21 11:56:26 2015 +0100
reproducible: build: avoid using 'hash' a variable name, as it's a builtin command
---
bin/reproducible_build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 95ac265..8a6d562 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -25,8 +25,8 @@ create_results_dirs() {
cleanup_all() {
if [ "$SAVE_ARTIFACTS" = "1" ] ; then
- local hash=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1)
- local ARTIFACTS="artifacts/r00t-me/tmp-${hash}/${SUITE}/${PACKAGE}"
+ local random=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1)
+ local ARTIFACTS="artifacts/r00t-me/tmp-${random}/${SUITE}/${PACKAGE}"
mkdir -p /var/lib/jenkins/userContent/$ARTIFACTS
cp -r $TMPDIR/* /var/lib/jenkins/userContent/$ARTIFACTS/
echo | tee -a ${RBUILDLOG}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list