diff options
author | Leah Rowe <leah@libreboot.org> | 2025-10-04 02:43:24 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-10-04 02:43:24 +0100 |
commit | 0605fbe72032125c8b430f1454794be40ab61009 (patch) | |
tree | 54f2c020a8b3a09f1c84c930680924e90dfb5ccd /include/init.sh | |
parent | e1c70f43198e7d709026ab7cd0422adc24083bd4 (diff) |
xbmk: general cleanup: unroll condensed code lines
i overlooked a number of lines, during previous cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r-- | include/init.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh index f14fa5ab..2db869ea 100644 --- a/include/init.sh +++ b/include/init.sh @@ -27,6 +27,7 @@ xbmk_init() if [ $# -gt 0 ] && [ "$1" = "dependencies" ]; then x_ xbmkpkg "$@" + exit 0 fi @@ -353,7 +354,9 @@ pybin() if [ -e "$pypath" ] && [ ! -d "$pypath" ] && \ [ -x "$pypath" ]; then + printf "%s\n" "$pypath" + return 0 fi fi @@ -363,7 +366,9 @@ pybin() [ $venv -gt 0 ] && for pypath in "/usr/local/bin" "/usr/bin"; do if [ -e "$pypath/$1" ] && [ ! -d "$pypath/$1" ] && \ [ -x "$pypath/$1" ]; then + printf "%s/%s\n" "$pypath" "$1" + return 0 fi done && return 1 |