Преглед на файлове

suppress whining when nothing is to be bound

George Baugh преди 1 година
родител
ревизия
b44b042277
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      service/tpsgi.sh

+ 3 - 0
service/tpsgi.sh

@@ -12,6 +12,9 @@ echo "tPSGI running as user $USERNAME"
 # Bind the various dirs we need for chroot to work
 readarray -t BIND_DIRS <<< $(bin/tpsgi-config --binds)
 for bind in "${BIND_DIRS[@]}"; do
+    if [[ -z $bind ]]; then
+        continue;
+    fi;
     bn=$(basename $bind)
     to_bind=$(pwd)/$bn;
     if [[ -d $bind ]]; then