Bugzilla – Attachment 5016 Details for
Bug 6540
Add more options to koha-create
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow up - fix problem when --configfile is not set
0001-Bug-6540-Followup-koha-create-would-die-without-conf.patch (text/plain), 1.15 KB, created by
Magnus Enger
on 2011-08-15 07:05:56 UTC
(
hide
)
Description:
Follow up - fix problem when --configfile is not set
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2011-08-15 07:05:56 UTC
Size:
1.15 KB
patch
obsolete
>From 48685f479294cb274120dec0652f3e7b2cff29d0 Mon Sep 17 00:00:00 2001 >From: Magnus Enger <magnus@enger.priv.no> >Date: Mon, 15 Aug 2011 09:00:07 +0200 >Subject: [PATCH] Bug 6540 - Followup - koha-create would die without --configfile > >koha-create would fail to check that --configfile was set on the >commandline, before either including it if it existed or dying if >it did not. This patch should make sure the existence of a >configfile is only tested if --config is set. >--- > debian/scripts/koha-create | 11 +++++++---- > 1 files changed, 7 insertions(+), 4 deletions(-) > >diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create >index d039e94..616ed01 100755 >--- a/debian/scripts/koha-create >+++ b/debian/scripts/koha-create >@@ -105,11 +105,14 @@ while true ; do > done > > # Load the configfile given on the command line >-if [ -e "$configfile" ] >+if [ "$configfile" != "" ] > then >- . "$configfile" >-else >- die "$configfile does not exist."; >+ if [ -e "$configfile" ] >+ then >+ . "$configfile" >+ else >+ die "$configfile does not exist."; >+ fi > fi > > # Make sure options from the command line get the highest precedence >-- >1.7.4.1 >
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 6540
:
4649
|
4660
|
4677
|
4679
|
4690
|
4691
|
4692
|
4693
|
4694
|
4696
|
5016
|
5100