tree.sh: don't combine remkdir/cd gnupath

it's stupid. separate them, to make the code readable.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-09-07 17:49:12 +01:00
parent c4cd9c08df
commit 53491bdca2
+2 -1
View File
@@ -269,7 +269,8 @@ check_gnu_path()
[ "$gnatfull" = "$gccfull" ] || return 1
(
remkdir "$xbtmp/gnupath" && x_ cd "$xbtmp/gnupath"
remkdir "$xbtmp/gnupath"
x_ cd "$xbtmp/gnupath"
for _gnubin in "$_gnudir/$2"*"-$_gnuver"; do
_gnuutil="${_gnubin##*/}" && [ -e "$_gnubin" ] && \
x_ ln -s "$_gnubin" "${_gnuutil%"-$_gnuver"}"