WebGUI
      Click here to register.
      
View Cart (0)
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.


View All Tickets
if syntax not correct ofr slackware and debian WRE_OSTYPE  (#3400)
Issue

This line 635 and 638 of build.sh:

            if [ -f /etc/slackware-release ] || [ -f /etc/slackware-version ]; then
                export WRE_OSTYPE="Slackware"
            fi
            if [ -f /etc/debian_release ] || [ -f /etc/debian_version ]; then
                export WRE_OSTYPE="Debian"
 

Gives this error:

./build.sh: line 635: [: missing `]'
./build.sh: line 635: -f: command not found
./build.sh: line 638: [: missing `]'
./build.sh: line 638: -f: command not found
 

And should be rewritten to this:
            if [ -f /etc/slackware-release ] || [ -f /etc/slackware-version ]; then
                export WRE_OSTYPE="Slackware"
            fi
            if [ -f /etc/debian_release ] || [ -f /etc/debian_version ]; then
                export WRE_OSTYPE="Debian"

Is WRE_OSTYPE (for Slackware or Debian) used anywhere? 

Solution Summary
Comments
JT
0
10/31/2007 9:48 am
fixed in
Details
Ticket Status Closed  
Rating0.0 
Submitted Bykoen 
Date Submitted2007-10-17 
Assigned To unassigned  
Date Assigned2008-12-01 
Assigned By 
Severity Cosmetic (misspelling, formatting problems)  
What's the bug in? WRE  
WebGUI / WRE Version 0.8.0  
URLbugs/tracker/if-syntax-not-correct-ofr-slackware-and-debian-wre_ostype
Keywords
Ticket History