From 70fae94c0d6157de5640db92f18ac95224affb5f Mon Sep 17 00:00:00 2001 From: "Ryan.RCS" Date: Fri, 9 Dec 2016 03:06:41 +0000 Subject: Bugfixed:run command: "yardstick-img-modify" fail! Avoid incorrect deletion of $raw_imgfile when the command: "kpartx -dv $raw_imgfile" execute failed. JIRA: YARDSTICK-424 Change-Id: I34dac60bda6c028c4b0f0bfd9ad077e2d5dbb0ff Signed-off-by: Ryan.RCS --- tools/yardstick-img-modify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/yardstick-img-modify b/tools/yardstick-img-modify index c28e2ad59..0033383ef 100755 --- a/tools/yardstick-img-modify +++ b/tools/yardstick-img-modify @@ -153,7 +153,7 @@ cleanup() { mount | grep $mountdir && umount $mountdir mount | grep "/mnt/vivid" && umount "/mnt/vivid" if [ -f $raw_imgfile ]; then - kpartx -dv $raw_imgfile || true + kpartx -dv $raw_imgfile fi rm -f $raw_imgfile rm -rf $mountdir -- cgit 1.2.3-korg