File: 11-hook-logging

package info (click to toggle)
syncmaildir 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 660 kB
  • ctags: 161
  • sloc: sh: 941; ansic: 583; makefile: 168
file content (11 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

mpull -t 
cat > target/.smd/hooks/post-pull.d/01-test <<EOT
echo \$@ 1>&2
EOT
chmod a+x target/.smd/hooks/post-pull.d/01-test
mpull 
grep 'post pull default 0' target/.smd/log/client.default.log > /dev/null
assert $? 0 "hook output not redirected to log file"