On Thu, 2006-09-21 at 11:40 +0200, Bas Wijnen wrote:
> 
> The easiest solution is to remove the debug_echo.  If it is needed for some
> reason, a construct like this should be made (note that this happens in a set
> +e block):
> 
> db_input "$PRIORITY" "$TEMPLATE"
> retval=$?
> if [ $retval -ne 0 ] ; then debug_echo "v_s_d_i/db_input $PRIORITY $TEMPLATE"
> ; fi
> if [ $? -eq 30 ]; then

The last line should use $retval as well instead of $?, shouldn't it?


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer

Reply via email to