diff --git a/common/util_functions.sh b/common/util_functions.sh index 4a99991..49b34c5 100644 --- a/common/util_functions.sh +++ b/common/util_functions.sh @@ -17,9 +17,6 @@ MODULESPATH=$ADBPATH/modules MHPCPATH=$ADBPATH/mhpc if [ "$INSTFN" ]; then # Installation (config.sh) - if [ ! -d "$MHPCPATH" ]; then - mkdir -pv $MHPCPATH >> $LOGFILE 2>&1 - fi MODVERSION=$(echo $(get_file_value $TMPDIR/module.prop "version=") | sed 's|-.*||') POSTPATH=$ADBPATH/post-fs-data.d SERVICEPATH=$ADBPATH/service.d diff --git a/install.sh b/install.sh index 6ce04fd..c918ca4 100644 --- a/install.sh +++ b/install.sh @@ -44,6 +44,10 @@ print_modname() { # Load functions and variables INSTFN=true . $TMPDIR/util_functions.sh + + # Create install directory + mkdir -pv $MHPCPATH + # Start module installation log log_start # Check Magisk version