From 6bc4446b4c8a3f40738b2aed203f4d97596c7bff Mon Sep 17 00:00:00 2001 From: Azriel Akbar Ferry Ardiansyah Kusumawardhana Date: Sat, 18 Feb 2023 16:59:23 +0700 Subject: [PATCH] fix: false positive busybox not found msg; close #3 Signed-off-by: Azriel Akbar Ferry Ardiansyah Kusumawardhana --- system/bin/lhroot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/bin/lhroot b/system/bin/lhroot index 1dfdb2a..b1e0f1b 100755 --- a/system/bin/lhroot +++ b/system/bin/lhroot @@ -15,8 +15,10 @@ ls /data >/dev/null 2>&1 || { echo "$ID needs to run as root!"; echo "type 'su' MODDIR="$MOUNTPATH/$ID" [ ! -d $MODDIR ] && { echo "Module not detected!"; exit 1; } -# Set path to your busybox if applicable -_bb= +if command -v busybox &> /dev/null +then + _bb=$(command -v busybox) +fi # Set directory for each chroot alpine="/data/alpine"