summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-04-15 16:33:15 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-15 16:33:15 +0200
commit8f255e38f5490b639553eca734c09901663ef23a (patch)
tree283ee6c13e6a4799129f6f9a2bda9956fd1670c5 /bin
parentc9eece698a37feff04fd4aec35e1ff0f0a93e08d (diff)
downloadjenkins.debian.net-8f255e38f5490b639553eca734c09901663ef23a.tar.xz
reproducible Debian: fix assumption and requirements
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build_service.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
index ac0e87fd..6b24ceaa 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||echo 0)|tail -1)
+OLD_ID=$(ls -1rt $BUILD_BASE|grep -v latest|tail -1)
let BUILD_ID=OLD_ID+1
mkdir -p $BUILD_BASE/$BUILD_ID
ln -sf $BUILD_BASE/$BUILD_ID $BUILD_BASE/latest