Bug 14532: fixed the "empty member" problem
authorRobin Sheat <robin@catalyst.net.nz>
Tue, 10 Nov 2015 03:17:26 +0000 (16:17 +1300)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 2 Mar 2016 04:39:51 +0000 (04:39 +0000)
PS: thanks to Olly Betts for knowing weird bash constuctions.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
debian/scripts/koha-dump

index 5f4676f..a67a2c8 100755 (executable)
@@ -90,7 +90,7 @@ dump_instance()
         "etc/koha/sites/$name" \
         "etc/apache2/sites-available/$instancefile" \
         "etc/apache2/sites-enabled/$instancefile" \
-        "var/log/koha/$name" "$zebra_files"
+        "var/log/koha/$name" ${zebra_files:+"$zebra_files"}
 
     [ "$quiet" = "no" ] && echo "Done."
 }