From d63edbf8bdd8d1e688d1c77a6f25ab4d2ccc0059 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Sun, 21 Sep 2025 12:03:05 +0700 Subject: [PATCH] fix: mbcpapp.sh: move environment check place warn must be shown for unsupported environment Signed-off-by: Cuynu --- MBCPApp/mbcpapp.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MBCPApp/mbcpapp.sh b/MBCPApp/mbcpapp.sh index e997398..66981f1 100755 --- a/MBCPApp/mbcpapp.sh +++ b/MBCPApp/mbcpapp.sh @@ -14,13 +14,6 @@ clear . "$DIRPATH/common.sh" -# Check if user is trying to run under WSL (Windows Subsystem for Linux) -# Removing this detection part might cause project development to be STOPPED, You've been warned ! -if [ -f /proc/sys/fs/binfmt_misc/WSLInterop* ]; then - warn "WSL environment detected !" - warn "Patcher continue to runs, but don't report any issues if the app is patched with WSL !" -fi - # Check if user is running on an actual Linux environment if uname -a | grep -i Linux ; then info "You have Linux environment :)" @@ -234,10 +227,17 @@ echo "Current commit : $COMMIT ($BRANCH)" echo "Source code : https://git.disroot.org/mbcp/mbbpatch.git" echo "Made possible by Cuynu's brain with love <3" echo ------------------------------------------------------------- +# Check if user runs on Termux if [[ -f /data/data/com.termux/files/usr/bin/termux-setup-storage ]]; then warn "Termux environment detected !" warn "Patcher continue to runs, but don't report any issues if the app is patched with Termux!" fi +# Check if user is trying to run under WSL (Windows Subsystem for Linux) +# Removing this detection part might cause project development to be STOPPED, You've been warned ! +if [ -f /proc/sys/fs/binfmt_misc/WSLInterop* ]; then + warn "WSL environment detected !" + warn "Patcher continue to runs, but don't report any issues if the app is patched with WSL !" +fi # Main functions PS3='Please select options to continue : '