fix osx build script when the path to the plugin folder contains spaces
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 30 May 2012 15:34:25 +0000 (15:34 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 30 May 2012 15:34:25 +0000 (15:34 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12492 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/osx_packaging/osx_build

index 17e86d58b7857bfe585794a37fe33589a31f71f0..2d2328342c319147c7af6e4e91c892d37333b8bb 100755 (executable)
@@ -280,7 +280,7 @@ if test x$WITH_LADSPA != x ; then
     else
        plugdir=ladspa
     fi
-    if [ -d $plugdir -a x`ls $plugdir` != x ] ; then 
+    if [ -d $plugdir -a "x$(ls $plugdir)" != x ] ; then 
         echo "Copying `ls $plugdir | wc -l` plugins ..."
         cp -r $plugdir/* $Plugins
     fi