mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 15:03:44 +02:00
trees: only permit one single-tree project
the current logic for handling multiple single-tree projects is quite error-prone, and uses recursion. since we don't actually use it this way, remove that feature. the most correct way to do it is with a for loop. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-3
@@ -31,7 +31,7 @@ main()
|
|||||||
-n) mode="nconfig" ;;
|
-n) mode="nconfig" ;;
|
||||||
*) $err "invalid option '-$option'" ;;
|
*) $err "invalid option '-$option'" ;;
|
||||||
esac
|
esac
|
||||||
shift; project="${OPTARG#src/}"; shift
|
project="${OPTARG#src/}"; shift 2
|
||||||
done
|
done
|
||||||
[ -z "$_f" ] && $err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)"
|
[ -z "$_f" ] && $err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)"
|
||||||
[ -z "$project" ] && $err "project name not specified"
|
[ -z "$project" ] && $err "project name not specified"
|
||||||
@@ -57,8 +57,6 @@ main()
|
|||||||
|
|
||||||
build_projects()
|
build_projects()
|
||||||
{
|
{
|
||||||
[ $# -gt 0 ] && x_ ./update trees $_f $@
|
|
||||||
|
|
||||||
if [ "$mode" = "fetch" ]; then
|
if [ "$mode" = "fetch" ]; then
|
||||||
[ -f "CHANGELOG" ] && return 0
|
[ -f "CHANGELOG" ] && return 0
|
||||||
fetch_project_repo; return 0
|
fetch_project_repo; return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user