[[: not found
Summary
This article provides troubleshooting tips related to receiving a [[: not found error/exception.
When attempting to deploy JasperReports Server 4.0 on a Linux system like Debian or Ubuntu the install fails with [[: not found or similar
Symptoms
WAR file does not deploy. Scripts exit with errors.
./js-install.sh./bin/do-js-install.sh: 30: [[: not found ./bin/do-js-install.sh: 30: ce: not found [: 72: unexpected operator ./bin/do-js-install.sh: 72: [[: not found
Please enter one of the following options: , minimal, regen-config, drop-db, test
Causes
In version 4.0 of the WAR installer the default shebang was configured to #!/bin/sh which was not compatible with the scripts.
Resolutions
Replace #!/bin/sh with #!/bin/bash at the top of every .sh file in /buildomatic and /buildomatic/bin
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now