aboutsummaryrefslogtreecommitdiff
path: root/libreboot
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-10-30 00:27:27 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-10-30 00:32:47 -0500
commit692ef71d29082a07d94787798ed595b91bca59b8 (patch)
tree7529b1d48ecd2520c57719e7a0b1ffe236ceeb49 /libreboot
parent7b8af136f1f620cb91c170d897cde89b357b80a1 (diff)
downloadlibrebootfr-692ef71d29082a07d94787798ed595b91bca59b8.tar.gz
librebootfr-692ef71d29082a07d94787798ed595b91bca59b8.zip
Fix project usage action
The project's scripts were never sourced before calling usage(), causing project_action() to fail. project_action_usage() should be used only when a project's scripts have not yet been sourced otherwise its call to project_include() would be redundant.
Diffstat (limited to 'libreboot')
-rwxr-xr-xlibreboot4
1 files changed, 2 insertions, 2 deletions
diff --git a/libreboot b/libreboot
index 30ea9f63..b3c97f5d 100755
--- a/libreboot
+++ b/libreboot
@@ -100,8 +100,8 @@ libreboot_project() {
if ! project_function_check "$project" "$action"; then
libreboot_usage
exit 1
- elif [[ "$action" == 'usage' ]]; then
- project_action "$action" "$project" "$@"
+ elif [[ $action == usage ]]; then
+ project_action_usage "$project" "$@"
else
project_action_arguments "$action" "$project" "$@"
fi