File: 07-hooks-post-fail

package info (click to toggle)
syncmaildir 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,104 kB
  • sloc: ansic: 6,643; sh: 1,780; makefile: 247
file content (13 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

mpull -t 
cat > target/.smd/hooks/post-pull.d/01-test <<EOT
echo \$@
EOT
chmod a+x target/.smd/hooks/post-pull.d/01-test
chmod a-w target/
mpull 
chmod u+w target/
grep 'post pull default 1' target/.smd/log/client.default.log > /dev/null
assert $? 0 "hook not called correctly"