summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-18 00:27:33 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-18 00:27:33 +0100
commite11fd52d958d93590a499a2d88139302dd057f5c (patch)
tree4914db3de3a58b2b96a67a6727916636deaf269e
parent3442f4278ed8536215125ade04a754b99bc24fde (diff)
mk: tidy up check_gnu_path()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk b/mk
index 96d762a2..a8e4e617 100755
--- a/mk
+++ b/mk
@@ -386,9 +386,8 @@ check_gnu_path()
rm -f "$XBMK_CACHE/gnupath/"* || $err "Cannot clear gnupath/"
cd "$XBMK_CACHE/gnupath" || $err "Can't cd to gnupath/"
for _gnubin in "$_gnudir/$2"*"-$_gnuver"; do
- [ -e "$_gnubin" ] || continue
- _gnuutil="${_gnubin##*/}"
- x_ ln -s "$_gnubin" "${_gnuutil%"-$_gnuver"}"
+ _gnuutil="${_gnubin##*/}" && [ -e "$_gnubin" ] && \
+ x_ ln -s "$_gnubin" "${_gnuutil%"-$_gnuver"}"
done
) || $err "Cannot create $2-$_gnuver link in $_gnudir"; :
}