zdtm: remove bashisms from hooks

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Andrew Vagin 2016-05-10 03:59:00 +03:00 committed by Pavel Emelyanov
parent 23b769498c
commit bfe7f6dce5

View file

@ -2,13 +2,14 @@
umask 0000
[ "$1" == "--pre-restore" ] && {
[ "$1" = "--pre-restore" ] && {
exit
# emulate rsync
rm -rf etc/zdtm-test
touch etc/zdtm-test
}
[ "$1" == "--post-pre-dump" ] && {
[ "$1" = "--post-pre-dump" ] && {
echo 'invalidate the irmap cache'
mv etc/zdtm-test etc/zdtm-test2
mv etc/zdtm-test1 etc/zdtm-test