Benoit Dunand-Laisin created DOXIA-516:
------------------------------------------
Summary: [Daemon *nix template] Params of tr command must be
quoted
Key: DOXIA-516
URL: https://jira.codehaus.org/browse/DOXIA-516
Project: Maven Doxia
Issue Type: Bug
Components: Maven plugin
Affects Versions: 1.6
Environment: Ubuntu 12.04 and other linux
Reporter: Benoit Dunand-Laisin
I generate a daemon with appassembler-maven-plugin.
The contains of bin directory is moved to */usr/bin*
When I start the daemon, It failed because the script look for
*/usr/bin/wrapper-{color:red}w{color}inux-x86-64*
The problem is with the *tr* command used on DIST_OS and DIST_ARCH and happens
only if the script is put in /usr/bin
{noformat}
tr [:upper:] [:lower:]
{noformat}
must be changed to
{noformat}
tr "[:upper:]" "[:lower:]"
{noformat}
Here is an example to show that funny thing:
{noformat}
>cd
>echo "Linux" | tr [:upper:] [:lower:]
linux
>cd /usr/bin
>echo "Linux" | tr \[:upper:\] \[:lower:\]
winux
>cd /usr/bin
>echo "Linux" | tr "[:upper:]" "[:lower:\]"
linux
{noformat}
It must be changed in sh.script.in
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)