[PATCH] 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
-- 
1.7.1



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