Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
yashdsaraf committed Mar 2, 2018
2 parents e05e54e + 54fcaaf commit 10d56f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ install: scripts/install-dependencies.sh
script: scripts/readytorock.sh
env:
global:
- VER="1.28.0-YDS"
- STATUS="unstable"
- VER="1.28.1-YDS"
- STATUS="stable"
- BUILD_TAG="v${VER}-$(TZ=UTC date +'%Y%m%d%H%M')"
- TEMP_DIR=$(mktemp -d)
matrix:
Expand Down
20 changes: 14 additions & 6 deletions bbx/common_install_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -278,19 +278,27 @@ elif [ -d /data/adb/su ]
then ui_print "Systemless root detected (Running in SBIN mode) --"
fi

if [ -f /data/magisk.img ]
if [ -f /data/adb/magisk.img ]
then MAGISKDIR=/data/adb
elif [ -f /data/magisk.img ]
then MAGISKDIR=/data
else
MAGISKDIR=
fi

if [ ! -z $MAGISKDIR ]
then
ui_print "Magisk detected --"
ui_print "Extracting module.prop --"
unzip -o "$BBZIP" module.prop >/dev/null
error "Error while extracting files"
MAGISKBIN=/data/magisk
MAGISKBIN=$MAGISKDIR/magisk
MOUNTPATH=/magisk
IMG=/data/magisk.img
IMG=$MAGISKDIR/magisk.img
if $BOOTMODE
then
MOUNTPATH=/dev/magisk_merge
IMG=/data/magisk_merge.img
IMG=$MAGISKDIR/magisk_merge.img
fi
export MAGISKBIN MOUNTPATH IMG INSTALLER BOOTMODE INSTALLDIR LOGFILE
MAGISKINSTALLDIR=$($MAGISK_INSTALLER $OPFD)
Expand All @@ -302,7 +310,7 @@ if [ -f /data/magisk.img ]
fi
elif $BOOTMODE
then false
error "Magisk is not installed"
error "Magisk is not installed"
fi

ui_print " "
Expand Down Expand Up @@ -409,7 +417,7 @@ if [ ! -z $etc -a -d $etc -a -w $etc ]
else ui_print "ETC directory is **NOT** accessible --"
fi

# cd to the root directory to avoid "device or resource busy" errors while unmounting
# cd to the root directory to avoid "device or resource busy" errors while unmounting
cd /

if [ ! -z $SULOOPDEV ]
Expand Down

0 comments on commit 10d56f8

Please # to comment.