summaryrefslogtreecommitdiff
path: root/include/tree.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-09-07 17:49:12 +0100
committerLeah Rowe <leah@libreboot.org>2025-09-07 17:49:12 +0100
commit53491bdca2428378b08e5b8aaf00d339114764f2 (patch)
treeda8bc30f3356b90333186febecfedf0b59866eee /include/tree.sh
parentc4cd9c08df60ee5d62df6db75aab593fc14d6bad (diff)
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>
Diffstat (limited to 'include/tree.sh')
-rw-r--r--include/tree.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 7dbb04cc..e5030064 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -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"}"