Bläddra i källkod

suppress whining when nothing is to be bound

George Baugh 1 år sedan
förälder
incheckning
b44b042277
1 ändrade filer med 3 tillägg och 0 borttagningar
  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