Welcome, Guest
Username: Password: Remember me
CodeTyphon Linux OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Linux scripts inconsistency 11 years 11 months ago #1956

  • Aleksandar
  • Aleksandar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 150
  • Thank you received: 31
I noticed inconsistency in "ln_All_Info.sh" and "ln_All_Functions.sh" in version 2.60. I do not know anything about older versions, since I am very new to this project as you can see.

In line 79 of "ln_All_Info.sh" you have this condition
if [ $vsys32sub = 1 ] ;

and in function hassys32sub in "ln_All_Functions.sh" you have this
hassys32sub() 
{
vsysfpc32sub=0
vsyslaz32sub=0

if [ -f /etc/SuSE-release ] ;
then   
  vsysfpc32sub=1
  vsyslaz32sub=0
fi

if [ $(uname) = "SunOS" ] ; 
then  
  vsysfpc32sub=1
  vsyslaz32sub=1
fi

}

This make ugly
./ln_All_Info.sh: line 79: [: =: unary operator expected

I guess that you had one variable earlier, but now you made two (one for FPC and one for Lazarus), but forgot to change info script.

Please change info script to report results for both of them.

Please Log in or Create an account to join the conversation.

Last edit: by Aleksandar. Reason: fixed some small typos

Re: Linux scripts inconsistency 11 years 11 months ago #1958

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Thanks Sir
we will fix with this:

if [ $vsysfpc32sub = 1 ] ;
then
echo " "
echo "With 32bits SubSystem for FPC!!!"
fi

if [ $vsyslaz32sub = 1 ] ;
then
echo " "
echo "With 32bits SubSystem for Lazarus!!!"
fi
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.
  • Page:
  • 1