Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4616

Space in path results in bin/karaf: line 417: [: /home/fuse/te: binary operator expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Karaf, Patching
    • None
    • % %
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

    Description

      Installing fuse into a directory that contains space char results in:

      /home/fuse/te st/jboss-fuse-6.2.1.redhat-084/bin/karaf: line 417: [: /home/fuse/te: binary operator expected
      

      while starting. Fuse then runs ok but probably messes up the patching lib/ dir afterwards, as the error is in this code:

      415        # When users want to update the lib version of, they just need to create
      416        # a lib.next directory and on the new restart, it will replace the current lib directory.
      417        if [ -d ${KARAF_HOME}/lib.next ] ; then
      418            echo "Updating libs..."
      419            rm -rf "${KARAF_HOME}/lib"
      420            mv -f "${KARAF_HOME}/lib.next" "${KARAF_HOME}/lib"
      421        fi
      

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            avano@redhat.com Andrej Vano
            Andrej Vano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: