diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-02 04:40:11 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-02 04:40:11 +0100 |
commit | 91c0f942f3a04db216475c6cf01b92601f918eb6 (patch) | |
tree | 01742dd15210dd939f7e9f4548bebd9d88801e77 | |
parent | 7bead4f55a19c72607f8dd3777fccd5fee6322b5 (diff) |
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>
-rwxr-xr-x | script/update/project/trees | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/update/project/trees b/script/update/project/trees index 9dc758ea..a4980a2e 100755 --- a/script/update/project/trees +++ b/script/update/project/trees @@ -21,7 +21,6 @@ main() project="${1}" cfgsdir="config/${project}" [ -d "${cfgsdir}" ] || err "unsupported project name" - x_ rm -f "${cfgsdir}/"*/seen shift 1 targets=$(listitems "${cfgsdir}") @@ -29,7 +28,7 @@ main() [ -z "${targets}" ] && err "No targets for project: ${project}" for x in ${targets}; do - x_ rm -f "${cfgsdir}"/*/seen + x_ rm -f "${cfgsdir}/"*/seen x_ download_for_target "${x}" done x_ rm -f "${cfgsdir}"/*/seen |