chore: mbcpapp.sh: cleanup startup

mkdir -p always exit successfully even if the dir already exist, and will not overwrite it

Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
Hikarie Fukirei 2025-07-23 01:44:13 +07:00 • committed by Cuynu
commit d85a209930

View file

@ -4,27 +4,11 @@
# A tinkerer, not developer xD
# You might see this line but ignore it then continues calling me a developer, but after all, i just a loser :D
# Initial startup
if [ -d ~/mbbpatch/MBCPApp/mbapk ]
then
clear
else
mkdir ~/mbbpatch/MBCPApp/mbapk
fi
if [ -d ~/mbbpatch/MBCPApp/mbcpapp_apk ]
then
clear
else
mkdir ~/mbbpatch/MBCPApp/mbcpapp_apk
fi
if [ -d ~/mbbpatch/MBCPApp/tools ]
then
clear
else
mkdir ~/mbbpatch/MBCPApp/tools
fi
mkdir -p ~/mbbpatch/MBCPApp/mbapk
mkdir -p ~/mbbpatch/MBCPApp/mbcpapp_apk
mkdir -p ~/mbbpatch/MBCPApp/tools
clear
# Check if user runs on actual Linux environment
if [[ $(grep -i Linux /proc/version) ]]; then