]> git.koha-community.org Git - koha.git/commit
Bug 37038: koha-elasticsearch creates a file named 0
authorJanusz Kaczmarek <januszop@gmail.com>
Wed, 5 Jun 2024 17:27:03 +0000 (17:27 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 28 Jun 2024 11:49:23 +0000 (13:49 +0200)
commitbc92152e2f2d1488c48d4ead0dceb8e52f744d39
tree37e0cc3f1dbd1fc8e7b65b72d7a54cfc4cf2f162
parent7c5a96e6eb3a8d8e02a1730c63ff2843b66be659
Bug 37038: koha-elasticsearch creates a file named 0

After execution of koha-elasticsearch command a file named 0 remains in
the current directory.

Inside the single parentheses, the character '>' is treated as a file
redirection, not as a comparison operator.

Test plan:
==========
1. Have a test installation with Elasticsearch.  As root, perform:
   ./debian/scripts/koha-elasticsearch --rebuild kohadev
   When the command finishes, check the contents of the current
   directory (ls -ltr | tail).  You sould notice a fresh file named '0'
2. Apply the patch. Delete the file named 0.
3. Repeat p. 1.  There should be no file named 0 now.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
debian/scripts/koha-elasticsearch