lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Koch (JIRA)" <>
Subject [jira] Created: (SOLR-2260) syntax error in shell script "abo"
Date Wed, 01 Dec 2010 14:15:12 GMT
syntax error in shell script "abo"

                 Key: SOLR-2260
             Project: Solr
          Issue Type: Sub-task
    Affects Versions: 1.4.1, 1.4
            Reporter: Thomas Koch

The syntax error doesn't effects all shells, on my computer only zsh but not dash or bash:
--- src/scripts/abo
+++ src/scripts/abo
@@ -175,7 +175,7 @@ trap 'echo cleaning up, please wait ...;/bin/rm -rf ${data_dir}/${name}
 # make a backup using hard links into temporary location
 # then move it into place atomically
-if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin"  || "${OS}" == "FreeBSD"]]
+if [[ "${OS}" == "SunOS" || "${OS}" == "Darwin"  || "${OS}" == "FreeBSD" ]]
   mkdir ${data_dir}/${temp}

It's only the space at the end of the if statement. You can check for syntax errors in shells
Debian is doing this as part of it's package sanity checks. This is how I found the issue.
If you have multiple shells on your system, you can run this check with all shells:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message