release.sh: tidy up nuke()

i wasn't ok having that variable initialisation and
then the commands on the same line. it looks messy.

having the commands on a separate line makes the code nice
to read, so let's separate them.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-18 10:33:23 +01:00
parent 3c58181f69
commit 44df3b2bff
+3 -2
View File
@@ -59,8 +59,9 @@ prep_release_src()
nuke() nuke()
{ {
r="$relsrc/src/${1#config/}"; [ -d "${r%/*}" ] && x_ cd "${r%/*}" && \ r="$relsrc/src/${1#config/}"
dx_ "eval [ -L \"\$fx\" ] || x_ rm -Rf" "$relsrc/$1"; : [ -d "${r%/*}" ] && x_ cd "${r%/*}" && \
dx_ "eval [ -L \"\$fx\" ] || x_ rm -Rf" "$relsrc/$1"
} }
prep_release_tarball() prep_release_tarball()