git.sh: fix deletion path in nuke()

i accidentally forgot to include src/ in the prefix

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-06-09 11:43:47 +01:00 committed by Leah Rowe
parent ab4c4d406f
commit 14bba2d789
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ move_repo()
nuke()
{
e "config/${1%/}/nuke.list" f missing || while read -r nukefile; do
rmf="${2%/}/$nukefile" && [ -L "$rmf" ] && continue
rmf="src/${2%/}/$nukefile" && [ -L "$rmf" ] && continue
e "$rmf" e missing || rm -Rf "$rmf" || $err "!rm $rmf, ${2%/}"
done < "config/${1%/}/nuke.list"; return 0
}