aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibreboot4
-rwxr-xr-xlibs/tool1
2 files changed, 4 insertions, 1 deletions
diff --git a/libreboot b/libreboot
index 1363e880..94eba109 100755
--- a/libreboot
+++ b/libreboot
@@ -155,12 +155,14 @@ libreboot_setup_include() {
libreboot_setup_tool_actions() {
local -i tool_actions_count="${#TOOL_ACTIONS_GENERIC[@]}"
+ local ignore="${TOOL_ACTIONS_GENERIC_IGNORE_CHECK[*]}"
+
local -a tool_actions
for ((i=0; i<"${tool_actions_count}"; i++)); do
tool_actions+=("${TOOL_ACTIONS_GENERIC[i]}")
- if [[ "${TOOL_ACTIONS_GENERIC[i]}" == @(extract) ]]; then
+ if [[ "${TOOL_ACTIONS_GENERIC[i]}" == !(${ignore// /|}) ]]; then
tool_actions+=("${TOOL_ACTIONS_GENERIC[i]/%/_check}")
fi
done
diff --git a/libs/tool b/libs/tool
index 0fb09a96..03d2d508 100755
--- a/libs/tool
+++ b/libs/tool
@@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
TOOL_ACTIONS_GENERIC=(usage update execute)
+TOOL_ACTIONS_GENERIC_IGNORE_CHECK=(usage update)
TOOL_ACTIONS_HELPERS=(arguments)
tool_include() {