diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-21 11:56:26 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-21 12:08:07 +0100 |
commit | 30706c84bc328c5d2cdec8a44a1e6f91a3f8b91f (patch) | |
tree | dd811c25e4e98cd1c0261293c994786bf05d4c07 /bin | |
parent | 087ac492f818651e514313272fc094cebdd55440 (diff) | |
download | jenkins.debian.net-30706c84bc328c5d2cdec8a44a1e6f91a3f8b91f.tar.xz |
reproducible: build: avoid using 'hash' a variable name, as it's a builtin command
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files 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} |