diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-04-15 19:01:57 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-04-15 19:01:57 +0200 |
commit | dc52801ace7f3992b58caa3501c56c009af7dc37 (patch) | |
tree | 90f8b89d19695209f7b2d5565b11cc54e00176fd | |
parent | 3ef9204de35f97d430f7f92b5c8e1845073de097 (diff) | |
download | jenkins.debian.net-dc52801ace7f3992b58caa3501c56c009af7dc37.tar.xz |
reproducible Debian: fix latest logic
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_build_service.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh index 14477cc2..29a57595 100755 --- a/bin/reproducible_build_service.sh +++ b/bin/reproducible_build_service.sh @@ -19,7 +19,7 @@ set -x /bin/sleep $(echo "scale=1 ; $(shuf -i 1-230 -n 1)/10" | bc ) BUILD_BASE=/var/lib/jenkins/userContent/reproducible/debian/build_service/$1 -OLD_ID=$(ls -1rt $BUILD_BASE|grep -v latest|head -1) +OLD_ID=$(ls -1rt $BUILD_BASE|grep -v latest|tail -1) let BUILD_ID=OLD_ID+1 mkdir -p $BUILD_BASE/$BUILD_ID (cd $BUILD_BASE ; ln -sf $BUILD_ID latest) |