Author: sparky
Date: Tue Feb 28 20:09:59 2006
New Revision: 7044

Modified:
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions
Log:
- exit with error if aborted
- fix verbose() colors


Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions      (original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions      Tue Feb 28 20:09:59 2006
@@ -37,6 +37,7 @@
        if [ "$ERROR" -gt 0 ]; then
                echo "$cR${0##*/}: ERROR($ERROR): $*$cE" > /dev/stderr
        else
+               ERROR=1
                echo "$cY${0##*/}: ABORTED: $*$cE" > /dev/stderr
        fi
        echo $ERROR > /tmp/sig
@@ -73,6 +74,7 @@
                        cY="$esc[33m"
                        eval color="\$c${c}"
                        endcol="$cE"
+                       shift
                        ;;
        esac
        if [ "$Eopt" = "-n" ]; then
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to