Sencha cmd bash script fails when install path contains spaces
Sencha Cmd version(s) tested:Operating System:
- OS X
- Linux (Ubuntu 12.10)
Steps to reproduce the problem:
- When the directory containing the sencha cmd tools has spaces in it, the "sencha" bash script fails. We have the cmd tools committed to git, then Jenkins runs it directly out of its workspace directory.
This occurs because the $BASEDIR variable in the "sencha" script is not properly quoted wherever used. The attached patch resolves the issue for both the Linux and OS X versions.
/home/myhome/jenkins/workspace with spaces/ $ sencha-cmd/sencha app build production
/home/myhome/jenkins/workspace with spaces/sencha-cmd/sencha: line 37: [: too many arguments
sed: /home/myhome/jenkins/workspace: No such file or directory
Unable to access jarfile /home/myhome/jenkins/workspace