[ https://issues.apache.org/jira/browse/KARAF-4374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-4374: ---------------------------------------- Fix Version/s: (was: 4.0.5) 4.0.6 > Problems in Karaf start script > ------------------------------ > > Key: KARAF-4374 > URL: https://issues.apache.org/jira/browse/KARAF-4374 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.0.4 > Reporter: Lars Kiesow > Assignee: Jean-Baptiste Onofré > Fix For: 4.1.0, 3.0.7, 4.0.6 > > > There are a couple of problems pointed out by shellcheck [1] in the karaf > start script (bin/karaf). These include: > > - Properly quote variables to prevent spaces from breaking the script > - Ensure that KARAF_HOME is set for commands which would otherwise try > to delete parts of the root file system. E.g: `rm -rf "$KARAF_HOME/lib"` > - Use only $(..) instead of both $(...) and `...` > - Require bash since not all commands are posix compliant anyway. > [1] http://shellcheck.net -- This message was sent by Atlassian JIRA (v6.3.4#6332)