From ef4a024ab3bf198cbccf2b04c674549f739c5850 Mon Sep 17 00:00:00 2001 From: fling Date: Thu, 30 Sep 2010 09:45:34 +0800 Subject: [PATCH] modified: mkraid_wrapper.sh add success information --- operation/mkraid_wrapper.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/operation/mkraid_wrapper.sh b/operation/mkraid_wrapper.sh index 3c55faa..dd034fa 100755 --- a/operation/mkraid_wrapper.sh +++ b/operation/mkraid_wrapper.sh @@ -17,12 +17,13 @@ # # This file is a wrapper to mkraid.sh. - while read line do - $(dirname $0)/mkraid.sh "$line" - ret=$? - if [ $ret -ne 0 ];then - exit $ret - fi + $(dirname $0)/mkraid.sh "$line" + ret=$? + if [ $ret -ne 0 ];then + exit $ret + else + echo "@ make raid is success" + fi done