summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:01:26 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-04 22:01:26 (GMT)
commite930ddcaab24375042c161281f1aa592b8833cbf (patch)
treeadd19bd5964917ab2090b8ae5ada71ccd6ee465c /libexec
parenta469fabe9e786e7380b19c6162a6290e503d1811 (diff)
downloadsite-e930ddcaab24375042c161281f1aa592b8833cbf.tar.gz
02-build-snapshots: Cosmetic changes
Use better variables names.
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/post-receive.d/02-build-snapshots8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/post-receive.d/02-build-snapshots b/libexec/post-receive.d/02-build-snapshots
index ed8ef77..b0952ff 100755
--- a/libexec/post-receive.d/02-build-snapshots
+++ b/libexec/post-receive.d/02-build-snapshots
@@ -24,12 +24,12 @@ if [ "$repository" = "$snapshot_repository" ]
24then 24then
25 while read old new ref 25 while read old new ref
26 do 26 do
27 ref=${ref#refs/heads/} 27 branch=${ref#refs/heads/}
28 28
29 for head in $snapshot_branches 29 for snapshot_branch in $snapshot_branches
30 do 30 do
31 test "$ref" = "$head" \ 31 test "$branch" = "$snapshot_branch" \
32 && exec "$prefix/bin/build-snapshot" "$ref" 32 && exec "$prefix/bin/build-snapshot" "$branch"
33 done 33 done
34 done 34 done
35fi 35fi