mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
update/project/trees: remove redundant rm command
as it turns out, i delete "seen" inside the for loop, which is a more thorough way to do it. thus, the first rm command is unnecessary. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -21,7 +21,6 @@ main()
|
|||||||
project="${1}"
|
project="${1}"
|
||||||
cfgsdir="config/${project}"
|
cfgsdir="config/${project}"
|
||||||
[ -d "${cfgsdir}" ] || err "unsupported project name"
|
[ -d "${cfgsdir}" ] || err "unsupported project name"
|
||||||
x_ rm -f "${cfgsdir}/"*/seen
|
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
targets=$(listitems "${cfgsdir}")
|
targets=$(listitems "${cfgsdir}")
|
||||||
@@ -29,7 +28,7 @@ main()
|
|||||||
[ -z "${targets}" ] && err "No targets for project: ${project}"
|
[ -z "${targets}" ] && err "No targets for project: ${project}"
|
||||||
|
|
||||||
for x in ${targets}; do
|
for x in ${targets}; do
|
||||||
x_ rm -f "${cfgsdir}"/*/seen
|
x_ rm -f "${cfgsdir}/"*/seen
|
||||||
x_ download_for_target "${x}"
|
x_ download_for_target "${x}"
|
||||||
done
|
done
|
||||||
x_ rm -f "${cfgsdir}"/*/seen
|
x_ rm -f "${cfgsdir}"/*/seen
|
||||||
|
|||||||
Reference in New Issue
Block a user