You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    8
    Vote Rating
    0
    raztus is on a distinguished road

      0  

    Default Sencha cmd bash script fails when install path contains spaces

    Sencha cmd bash script fails when install path contains spaces


    Sencha Cmd version(s) tested:
    • Sencha Cmd 3.1.1.274
    Operating System:
    • OS X
    • Linux (Ubuntu 12.10)
    Framework used:
    • Irrelevant
    Description:
    • 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.
    Steps to reproduce the problem:

    Code:
    /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
    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.
    Attached Files
    Last edited by raztus; 20 May 2013 at 9:13 AM. Reason: Clarify code block

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    8
    Vote Rating
    0
    raztus is on a distinguished road

      0  

    Default


    Sounds pretty similar, but affects a different product (SenchaSDKTools-2.0.0-beta3 vs. Sencha Cmd 3.1.1.274).

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by raztus View Post
    Sounds pretty similar, but affects a different product (SenchaSDKTools-2.0.0-beta3 vs. Sencha Cmd 3.1.1.274).
    Indeed but the ticket internally is also tied to Cmd 3.1 but will link the ticket to this thread also.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread