shutils: return proper error in {do,pre,post}_* stage funcs and use msg_error.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091012220713-k3j00b7x3jk5s3we
This commit is contained in:
Juan RP
2009-10-13 00:07:13 +02:00
parent cf7b3caebe
commit 9296d25811
4 changed files with 16 additions and 18 deletions

View File

@@ -33,7 +33,10 @@ run_func()
[ -z "$func" ] && return 1
type -t $func | grep -q 'function'
[ $? -eq 0 ] && $func
if [ $? -eq 0 ]; then
$func
return $?
fi
}
run_rootcmd()