diff options
author | Colin Guthrie <colin@mageia.org> | 2013-08-18 17:10:20 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-08-18 17:10:20 +0000 |
commit | 694ea4adcd771974d0e79e05f79a37f1f3d2a2ba (patch) | |
tree | 29251188b9c1be377e24ea807aacd809a728c14d /modules/subversion/templates | |
parent | fa3aecb7e779de3ee9094d4b8ec8ff0db67bad98 (diff) | |
download | puppet-694ea4adcd771974d0e79e05f79a37f1f3d2a2ba.tar puppet-694ea4adcd771974d0e79e05f79a37f1f3d2a2ba.tar.gz puppet-694ea4adcd771974d0e79e05f79a37f1f3d2a2ba.tar.bz2 puppet-694ea4adcd771974d0e79e05f79a37f1f3d2a2ba.tar.xz puppet-694ea4adcd771974d0e79e05f79a37f1f3d2a2ba.zip |
subversion: Fix a theoretical bug where more scripts than expected may be excluded
Diffstat (limited to 'modules/subversion/templates')
-rw-r--r-- | modules/subversion/templates/hook_commit.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/subversion/templates/hook_commit.sh b/modules/subversion/templates/hook_commit.sh index ec7ea1cb..2b1b6ff3 100644 --- a/modules/subversion/templates/hook_commit.sh +++ b/modules/subversion/templates/hook_commit.sh @@ -9,9 +9,9 @@ author=$(svnlook author -t "$TXN" "$REP") # We will be able to remove it when updating to a better send mail hook if [ "$author" = 'schedbot' ]; then - LIST= `ls $0.d/* | grep -v send_mail` + LIST=`ls -1 $0.d/* | grep -v send_mail` else - LIST=`ls $0.d/*` + LIST=`ls -1 $0.d/*` fi for script in $LIST; do @@ -25,4 +25,3 @@ for script in $LIST; do $script $@ || exit 1 done - |