Go to file
Jonathan Druart 5d22e0b3a3 Bug 17532: Make koha-shell propagate the error code
Context: I am trying to make koha-misc4dev stop when something wrong happens.
Basically we do not want the process to continue of the DB has not been populated correctly.
It will make the errors easier to catch.

The issue: Say a script that will return an error (die in perl for an easy example),
koha-shell will not return the 255 error code, but 0 instead.
The caller cannot know something wrong happened

The solution is to propagate the error and make koha-shell return the same error code
as the command it executed

An example:
=== t.pl ===
die('something wrong');

% perl t.pl;echo $?
something wrong at t.pl line 1.
255

% sudo koha-shell kohadev -p -c 'perl xxx.pl' ; echo $?
something wrong at xxx.pl line 1.
0

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Tested it with
  $ sudo debian/scripts/koha-shell kohadev -c 'exit 8'
  $ echo $?
  8
The unpatched version returns 0 (forgets about the error code).

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
2020-04-01 21:11:15 +00:00
C4 Bug 23488: Line wrapping doesn't always respect word order in Patron card creator 2020-04-01 20:41:25 +00:00
Koha Bug 22273: Modify Koha::ArticleRequest->store to fill created_on 2020-04-01 20:46:07 +00:00
OpenILS
…
acqui Bug 24733: created_by param should be an arrayref 2020-04-01 20:09:45 +00:00
admin Bug 11281: Printing holds awaiting pickup prints both tabs 2020-03-05 00:35:38 +00:00
api/v1 Bug 24232: Fix required permissions in DELETE /biblios/:biblio_id 2020-01-03 22:35:47 +00:00
authorities Bug 24103: Add option to dump search query to templates 2020-04-01 15:29:12 +00:00
basket Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
catalogue Bug 24103: Add option to dump search query to templates 2020-04-01 15:29:12 +00:00
cataloguing Bug 24103: Add option to dump search query to templates 2020-04-01 15:29:12 +00:00
circ Bug 19809: Re-allow to call Koha::Objects::find in list context 2020-02-11 19:27:34 +00:00
clubs
…
course_reserves Bug 21003: Removed warning and changed wording on add_items-step2.tt 2019-03-23 09:51:36 +00:00
debian Bug 17532: Make koha-shell propagate the error code 2020-04-01 21:11:15 +00:00
docs Corrections to teams for 20.05 cycle 2019-11-29 12:10:34 +00:00
errors Bug 23329: Move error page to its own subroutine 2019-11-27 11:30:19 +00:00
etc Bug 17464: Order deny,allow / Deny from all was deprecated in Apache 2.4 and is now a hard error 2020-04-01 20:42:13 +00:00
ill Bug 21460: (follow-up) Fix bugs found in QA 2019-04-25 10:46:56 +00:00
installer Bug 22273: DBRev 19.11.04.002 2020-04-01 20:52:41 +00:00
koha-tmpl Bug 23753: Add missing humanMsg library to pages using background job JavaScript 2020-04-01 20:40:46 +00:00
labels Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
members Bug 21879: Code cleaning in printinvoice.pl 2020-04-01 20:09:41 +00:00
misc Bug 24114: (QA follow-up) Fix counts for lock, anonymize and delete 2020-03-30 21:57:45 +00:00
offline_circ Bug 22600: Add 'interface' to accountlines 2019-04-10 19:43:11 +00:00
opac Bug 24103: (follow-up) Dump query on opac authorities search 2020-04-01 15:29:24 +00:00
patron_lists
…
patroncards
…
plugins Bug 21073: (QA follow-up) Avoid unnecessary unless/else construct 2019-06-18 17:30:44 +01:00
reports Bug 24305: (QA follow-up) Strip table name in [[table.field|alias]] 2020-02-10 21:57:29 +00:00
reserve Bug 24485: Allow hold when some can be overridden 2020-02-06 20:25:58 +00:00
reviews
…
rotating_collections
…
serials Bug 23435: Add multiple copies of an item when receiving in serials 2019-10-17 14:59:40 +01:00
services
…
skel
…
suggestion Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-02-10 23:08:59 +00:00
svc Bug 23427: Simplify sort logic 2019-11-07 13:25:10 +00:00
t Bug 22273: Modify Koha::ArticleRequest->store to fill created_on 2020-04-01 20:46:07 +00:00
tags Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
tmp/modified_authorities
…
tools Bug 24878: Add auth check for copy-holidays 2020-03-23 23:52:10 +00:00
virtualshelves Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
xt
…
.editorconfig
…
.eslintrc.json Bug 23834: Add default ESLint configuration 2019-11-03 08:02:39 +00:00
.gitignore
…
.htaccess
…
.mailmap
…
.scss-lint.yml
…
INSTALL
…
Koha.pm Bug 22273: DBRev 19.11.04.002 2020-04-01 20:50:17 +00:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 24445: Add z3950 to makefile (bug 13937 follow-up) 2020-01-18 15:05:48 +00:00
README
…
README.md
…
README.robots
…
about.pl Bug 24327: Add warning to the about page is AnonSugggestions but AnonymousPatron 2020-01-14 01:20:26 +00:00
changelanguage.pl
…
fix-perl-path.PL
…
gulpfile.js
…
help.pl
…
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl
…
package.json Bug 23025: security vulnerability detected in fstream < 1.0.12 defined in yarn.lock 2019-11-27 11:30:17 +00:00
rewrite-config.PL Bug 17851: Add elasticsearch config to koha-conf.xml 2019-10-07 14:09:10 +01:00
yarn.lock Bug 23025: Update yarn.lock 2019-11-27 11:30:17 +00:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo