Bugzilla – Attachment 14222 Details for
Bug 9260
koha-run-backups complains "[: 97: missing ]"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9260: stop koha-run-backups complaining "missing ]"
Bug-9260-stop-koha-run-backups-complaining-missing.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2012-12-21 13:05:35 UTC
(
hide
)
Description:
Bug 9260: stop koha-run-backups complaining "missing ]"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-12-21 13:05:35 UTC
Size:
1.38 KB
patch
obsolete
>From 330d4f8b7c50b8cb42bfbb8a4eb6b82e630a4bb9 Mon Sep 17 00:00:00 2001 >From: MJ Ray <mjr@phonecoop.coop> >Date: Tue, 11 Dec 2012 14:17:36 +0000 >Subject: [PATCH] Bug 9260: stop koha-run-backups complaining "missing ]" >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Found because cron.daily/koha output contains the error "[: 97: missing ]" > >To test: > > 1. run koha-run-backups --days 2 --output /var/spool/koha > 2. should see no output > >Sponsored-by: Library of the Józef PiÅsudski Institute of America >Signed-off-by: Vitor FERNANDES <vfernandes@keep.pt> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >I still get an error: > ./koha-run-backups: 58: ./koha-run-backups: koha-list: not found >But this patch fixes the syntax error >--- > debian/scripts/koha-run-backups | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-run-backups b/debian/scripts/koha-run-backups >index 0aafc52..74f879b 100755 >--- a/debian/scripts/koha-run-backups >+++ b/debian/scripts/koha-run-backups >@@ -58,7 +58,7 @@ done > for name in $(koha-list --enabled | grep -Fxv demo) > do > koha-dump "$name" > /dev/null >- if [ -z "$dirname"]; then >+ if [ -z "$dirname" ]; then > backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' /etc/koha/sites/$name/koha-conf.xml )"; > else > backupdir="$dirname/$name"; >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9260
:
13998
|
14000
|
14002
| 14222