ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions
sparky
cvs at pld-linux.org
Mon Feb 27 22:57:14 CET 2006
Author: sparky
Date: Mon Feb 27 22:57:09 2006
New Revision: 7040
Modified:
ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/functions
Log:
- fixed "basename"
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 Mon Feb 27 22:57:09 2006
@@ -35,9 +35,9 @@
ERROR=$1
shift
if [ "$ERROR" -gt 0 ]; then
- echo "$cR${0##/}: ERROR($ERROR): $*$cE" > /dev/stderr
+ echo "$cR${0##*/}: ERROR($ERROR): $*$cE" > /dev/stderr
else
- echo "$cY${0##/}: ABORTED: $*$cE" > /dev/stderr
+ echo "$cY${0##*/}: ABORTED: $*$cE" > /dev/stderr
fi
echo $ERROR > /tmp/sig
sync; usleep 100000
@@ -47,7 +47,7 @@
### warn: show warning on stderr #############################################
warn() {
- echo "$cY${0##/}: Warning: $*$cE" > /dev/stderr
+ echo "$cY${0##*/}: Warning: $*$cE" > /dev/stderr
}
@@ -78,7 +78,7 @@
if [ "$Eopt" = "-n" ]; then
echo $Eoptnew "$color$*$endcol"
else
- echo $Eoptnew "$color${0##/}: $*$endcol"
+ echo $Eoptnew "$color${0##*/}: $*$endcol"
fi
Eopt=$Eoptnew
}
More information about the pld-cvs-commit
mailing list