From 30706c84bc328c5d2cdec8a44a1e6f91a3f8b91f Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 21 Mar 2015 11:56:26 +0100 Subject: 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 95ac2659..8a6d5624 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} -- cgit v1.2.3-70-g09d2