aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwift Geek <swiftgeek@gmail.com>2019-10-30 08:39:56 +0000
committerGogs <gogitservice@gmail.com>2019-10-30 08:39:56 +0000
commitb7b39afdd822e582140c3767e71efd40fd4875ae (patch)
tree7529b1d48ecd2520c57719e7a0b1ffe236ceeb49
parent7b8af136f1f620cb91c170d897cde89b357b80a1 (diff)
parent692ef71d29082a07d94787798ed595b91bca59b8 (diff)
downloadlibrebootfr-b7b39afdd822e582140c3767e71efd40fd4875ae.tar.gz
librebootfr-b7b39afdd822e582140c3767e71efd40fd4875ae.zip
Merge branch 'bugs' of and_who/libreboot into master
-rwxr-xr-xlibreboot4
-rwxr-xr-xlibs/project11
2 files changed, 13 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
diff --git a/libs/project b/libs/project
index 0bcc4d9d..673689ee 100755
--- a/libs/project
+++ b/libs/project
@@ -378,6 +378,17 @@ project_action_projects() {
done < "$path"
}
+project_action_usage() {
+ local project=$1
+ shift
+
+ (
+ project_include "$project"
+
+ project_action usage "$project" "$@"
+ )
+}
+
project_path() {
local project=$1