summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-11-23 16:12:22 +0100
committerHolger Levsen <holger@layer-acht.org>2014-11-23 16:12:22 +0100
commit495eb3ebdc3c76fec773495ada8d4b473214aaf4 (patch)
treec5c84c669d493617596fa58f82da13be0aceeaae /bin
parent2d4012a0384fb3cded07572e499150aee363dd19 (diff)
downloadjenkins.debian.net-495eb3ebdc3c76fec773495ada8d4b473214aaf4.tar.xz
refactor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index f90cd7fe..37fc6943 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -10,16 +10,16 @@
PACKAGES_DB=/var/lib/jenkins/reproducible.db
INIT=/var/lib/jenkins/reproducible.init
if [ -f $PACKAGES_DB ] && [ -f $INIT ] ; then
- if [ -f $PACKAGES_DB.lock ] ; then
+ if [ -f ${PACKAGES_DB}.lock ] ; then
for i in $(seq 0 100) ; do
sleep 15
echo "sleeping 15s, $PACKAGES_DB is locked."
- if [ ! -f $PACKAGES_DB.lock ] ; then
+ if [ ! -f ${PACKAGES_DB}.lock ] ; then
break
fi
done
- if [ -f $PACKAGES_DB.lock ] ; then
- echo "$PACKAGES_DB.lock still exist, exiting."
+ if [ -f ${PACKAGES_DB}.lock ] ; then
+ echo "${PACKAGES_DB}.lock still exist, exiting."
exit 1
fi
fi
@@ -95,7 +95,7 @@ elif [ ! -f ${PACKAGES_DB} ] ; then
done_randomness INTEGER,
PRIMARY KEY (datum))'
# 60 seconds timeout when trying to get a lock
- cat >/var/lib/jenkins/reproducible.init <<-EOF
+ cat > $INIT <<-EOF
.timeout 60000
EOF
fi