From bfe7f6dce5b4cba96becd287860be2f816b71cd0 Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Tue, 10 May 2016 03:59:00 +0300 Subject: [PATCH] zdtm: remove bashisms from hooks Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/static/inotify_irmap.hook | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/zdtm/static/inotify_irmap.hook b/test/zdtm/static/inotify_irmap.hook index eca6bfa72..ed3691e97 100755 --- a/test/zdtm/static/inotify_irmap.hook +++ b/test/zdtm/static/inotify_irmap.hook @@ -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