[svn-r6922] Purpose:

bug fix
Description:
    Not all echo commands honors the '-n' option.  In those cases,
    the output look weired though recognizable.
Solution:
    Eliminated the use of -n option. A better fix would be having
    configure to set the proper use of the echo command.
Platforms tested:
    only on sasn100 (a sun frontend of Janus).
    No committest since this is just a simple shell script change.
This commit is contained in:
Albert Cheng 2003-05-29 08:33:02 -05:00
parent 591902a623
commit 7f54723d99

View File

@ -50,9 +50,8 @@ show_action()
echo "Update the following tools because they are now installed at a new directory"
for t in $foundtools; do
echo "${t}:"
echo -n " current setting="
sed -e "/^prefix=/s/prefix=//p" -e d $t
echo " new setting="\""$prefix"\"
echo " current setting=`sed -e '/^prefix=/s/prefix=//p' -e d $t`"
echo " new setting="\""$prefix"\"
done
}
@ -126,7 +125,7 @@ fi
show_action
# Ask confirmation unless fmode is on
if [ x-$fmode = x- ]; then
echo -n "Continue? (yes/no)"
echo "Continue? (yes/no)"
read ansx
ans=`echo $ansx | tr "[A-Z]" "[a-z]"`
if [ x-$ans != x-yes ]; then