git.sh: further simplify nuke()
it's a very compact nuke Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
c6b692208b
commit
90a8ef90b0
|
@ -180,9 +180,7 @@ move_repo()
|
||||||
# called from script/trees when downloading sources.
|
# called from script/trees when downloading sources.
|
||||||
nuke()
|
nuke()
|
||||||
{
|
{
|
||||||
e "config/${1%/}/nuke.list" f missing && return 0
|
e "config/${1%/}/nuke.list" f missing || while read -r nukefile; do
|
||||||
|
|
||||||
while read -r nukefile; do
|
|
||||||
rmf="${2%/}/$nukefile" && [ -L "$rmf" ] && continue
|
rmf="${2%/}/$nukefile" && [ -L "$rmf" ] && continue
|
||||||
e "$rmf" e missing || rm -Rf "$rmf" || $err "!rm $rmf, ${2%/}"
|
e "$rmf" e missing || rm -Rf "$rmf" || $err "!rm $rmf, ${2%/}"
|
||||||
done < "config/${1%/}/nuke.list"; return 0
|
done < "config/${1%/}/nuke.list"; return 0
|
||||||
|
|
Loading…
Reference in New Issue