mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
mk: Remove unnecessary argument checks on trees()
These checks are no longer necessary, because these checks are already properly handled in main(). Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -134,10 +134,6 @@ trees()
|
|||||||
{
|
{
|
||||||
flags="f:b:m:u:c:x:s:l:n:d:"
|
flags="f:b:m:u:c:x:s:l:n:d:"
|
||||||
|
|
||||||
[ $# -lt 1 ] && $err "No argument provided"
|
|
||||||
[ "${1%-*}" = "$1" ] && $err \
|
|
||||||
"First argument must be a flag ($flags)"
|
|
||||||
|
|
||||||
while getopts $flags option; do
|
while getopts $flags option; do
|
||||||
[ -n "$_f" ] && $err "only one flag is permitted"
|
[ -n "$_f" ] && $err "only one flag is permitted"
|
||||||
_f="$1"
|
_f="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user