karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-4374) Problems in Karaf start script
Date Fri, 15 Apr 2016 12:27:25 GMT

     [ 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.6)
                   4.0.5

> 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, 4.0.5, 3.0.7
>
>
> 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)

Mime
View raw message