[grilo-plugins] setup-plugins-env.sh: avoid empty dir in GRL_PLUGIN_PATH



commit 5ed6004b7dea1744b16c23d95c2400526009014c
Author: Guillaume Emont <gemont igalia com>
Date:   Wed Jan 19 12:00:55 2011 +0100

    setup-plugins-env.sh: avoid empty dir in GRL_PLUGIN_PATH
    
    This can avoid annoying warnings when trying to load plugins from all dirs in
    GRL_PLUGIN_PATH.

 setup-plugins-env.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/setup-plugins-env.sh b/setup-plugins-env.sh
index 3abd14b..32417b4 100755
--- a/setup-plugins-env.sh
+++ b/setup-plugins-env.sh
@@ -9,7 +9,7 @@ PLUGINS=`find $plugin_dir -type d | grep .libs | sort -r`
 for p in $PLUGINS; do
   pname=`expr $p : '.*/\(.*\)/.*'`
   echo "  Found plugin:" $pname
-  GRL_PLUGIN_PATH=$GRL_PLUGIN_PATH:$PWD/$p
+  GRL_PLUGIN_PATH=$GRL_PLUGIN_PATH${GRL_PLUGIN_PATH:+:}$PWD/$p
 done
 
 export GRL_PLUGIN_PATH



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]