diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-20 20:14:09 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-20 20:14:09 +0100 |
commit | f6b77822835fcd775a845c825a4e6a78abaa742a (patch) | |
tree | 4ae0f155619259c8ae3c2d3c21cbf9cb0f10b245 /include/init.sh | |
parent | fb7aaa78bb080a473bdf0edf449bf08045e8366c (diff) |
This reverts commit fb7aaa78bb080a473bdf0edf449bf08045e8366c.
it caused a few issues. will re-do later
the old code isn't really broken, just inefficient, because
several files are scanned twice, but in practise the overhead
isn't that great
The error occurs sometimes, when bruteforcing me.bin:
ERROR ./mk: Unhandled error for: mv /home/user/lbmk/tmp/me.bin /home/user/lbmk/cache/tmpdl/check
This revert should fix the issue, for now.
Diffstat (limited to 'include/init.sh')
-rw-r--r-- | include/init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/init.sh b/include/init.sh index 39d48948..38eb1c81 100644 --- a/include/init.sh +++ b/include/init.sh @@ -181,7 +181,7 @@ pybin() [ $venv -gt 0 ] && for pypath in "/usr/local/bin" "/usr/bin"; do [ -e "$pypath/$1" ] && [ ! -d "$pypath/$1" ] && \ [ -x "$pypath/$1" ] && printf "%s/%s\n" "$pypath" "$1" && \ - return 0; : + return 0 done && return 1 # Defer to normal command -v if not a venv |