From b62ed65111265fa339c7d275842eec4bb254fedf Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 16 Apr 2020 15:00:31 -0400 Subject: [PATCH] If the plugin contains submodules, one of those submodules may be selected by accident. --- CHANGELOG.md | 6 ++++-- entrypoint.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aba8be..aef2135 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [1.0.2] - 2020-04-16 +### Changed +- If the plugin contains submodules, one of those submodules may be selected by accident. This should be fixed. -## [1.0.0] - 2020-04-16 +## [1.0.1] - 2020-04-16 ### Changed - Wrong directory was being checked for readme and changelog files diff --git a/entrypoint.sh b/entrypoint.sh index 92d57ae..17f0784 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,7 +19,7 @@ mkdir dist cp -r Koha dist/. cd dist -PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | sed '1q;d') +PLUGIN_MODULE=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*\.pm$' | tail -1 | sed '1q;d') echo "PLUGIN MODULE: $PLUGIN_MODULE" META_YML=$(find . -regex '\./Koha/Plugin/.*[A-Za-z]*/META\.yml$' | sed '1q;d')