From 0605fbe72032125c8b430f1454794be40ab61009 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 4 Oct 2025 02:43:24 +0100 Subject: xbmk: general cleanup: unroll condensed code lines i overlooked a number of lines, during previous cleanup Signed-off-by: Leah Rowe --- include/init.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/init.sh') 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 -- cgit v1.2.1