Bugzilla – Attachment 150566 Details for
Bug 33645
koha-foreach always returns 1 if --chdir not specified
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33645: Make koha-foreach return 0 if it completes successfully
Bug-33645-Make-koha-foreach-return-0-if-it-complet.patch (text/plain), 1.03 KB, created by
Jonathan Druart
on 2023-05-03 07:34:40 UTC
(
hide
)
Description:
Bug 33645: Make koha-foreach return 0 if it completes successfully
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-03 07:34:40 UTC
Size:
1.03 KB
patch
obsolete
>From 6e12f12fd96a94f2a17e591f7679fe1f44ebe663 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 2 May 2023 00:16:30 +0000 >Subject: [PATCH] Bug 33645: Make koha-foreach return 0 if it completes > successfully > >This patch adds an "exit 0" to the end of koha-foreach, so that it >returns a successful exit code if it reaches the bottom of the script >without errors. > >Test plan: >0) `koha-foreach echo` >1) `echo $?` >2) Note that the exit status is 1 >3) Apply patch >4) `./debian/scripts/koha-foreach echo` >5) `echo $?` >6) Note that the exit status is 0 > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > debian/scripts/koha-foreach | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/debian/scripts/koha-foreach b/debian/scripts/koha-foreach >index 2f5a150fcbd..d2e98dd7deb 100755 >--- a/debian/scripts/koha-foreach >+++ b/debian/scripts/koha-foreach >@@ -72,3 +72,5 @@ do > [ "$chdir" != "no" ] && cd "$starting_dir" > fi > done >+ >+exit 0 >-- >2.25.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 33645
:
150484
|
150492
| 150566