Author: arekm
Date: Thu Sep 30 06:26:22 2010
New Revision: 11823
Modified:
rc-scripts/trunk/rc.d/rc
Log:
Fix 'local: mo�na u�ywa� tylko w funkcji' on bash.
Modified: rc-scripts/trunk/rc.d/rc
==============================================================================
--- rc-scripts/trunk/rc.d/rc (original)
+++ rc-scripts/trunk/rc.d/rc Thu Sep 30 06:26:22 2010
@@ -258,14 +258,15 @@
# Say something ;)
text="$(nls '%sResource Manager: %sRunlevel has been reached' "$af2" "$af7")"
text_size="$(nls '%sResource Manager: %sRunlevel has been reached' "" "")"
-{
- local _len=${#text_size}
- local _last_col=$(($INIT_COL+${#resp_size}-${#runlevel}))
- while [ $((_len++)) -lt $_last_col ]; do
- text="$text."
- done
- echo -n "$text"
-}
+
+_len=${#text_size}
+_last_col=$(($INIT_COL+${#resp_size}-${#runlevel}))
+while [ $((_len++)) -lt $_last_col ]; do
+ text="$text."
+done
+echo -n "$text"
+unset _len _last_col
+
echo "${af6}[${af2} $runlevel ${af6}]${af7}"
unset af2 af6 af7
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit