diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-04 22:01:26 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-04 22:01:26 (GMT) |
commit | e930ddcaab24375042c161281f1aa592b8833cbf (patch) | |
tree | add19bd5964917ab2090b8ae5ada71ccd6ee465c /libexec | |
parent | a469fabe9e786e7380b19c6162a6290e503d1811 (diff) | |
download | site-e930ddcaab24375042c161281f1aa592b8833cbf.tar.gz |
02-build-snapshots: Cosmetic changes
Use better variables names.
Diffstat (limited to 'libexec')
-rwxr-xr-x | libexec/post-receive.d/02-build-snapshots | 8 |
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" ] | |||
24 | then | 24 | then |
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 |
35 | fi | 35 | fi |