mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lib.sh: remove the items() function
it's pretty much just doing the same thing as ls -1 remove it! Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -118,19 +118,6 @@ done
|
||||
relname="$projectname-$version"
|
||||
export LOCALVERSION="-$projectname-${version%%-*}"
|
||||
|
||||
items()
|
||||
{
|
||||
rval=1
|
||||
e "$1" d not && return 1
|
||||
for x in "$1/"*; do
|
||||
# -e used because this is for files *or* directories
|
||||
[ -e "$x" ] || continue
|
||||
printf "%s\n" "${x##*/}" 2>/dev/null
|
||||
rval=0
|
||||
done
|
||||
return $rval
|
||||
}
|
||||
|
||||
scan_config()
|
||||
{
|
||||
awkstr=" /\{.*$1.*}{/ {flag=1;next} /\}/{flag=0} flag { print }"
|
||||
|
||||
Reference in New Issue
Block a user