File: 11-hook-logging

package info (click to toggle)
syncmaildir 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,188 kB
  • sloc: ansic: 6,321; sh: 1,995; makefile: 232; xml: 14
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"