Fix issue of touch command on Android 5.0

This commit is contained in:
topjohnwu 2017-11-20 04:13:51 +08:00
parent 858e7bae2b
commit 3bc31374ac

View File

@ -11,7 +11,7 @@ INSTALLER=$TMPDIR/install; BBDIR=$TMPDIR/bin
EXBIN=$BBDIR/b64xz; BBBIN=$BBDIR/busybox EXBIN=$BBDIR/b64xz; BBBIN=$BBDIR/busybox
$INDEP || rm -rf $TMPDIR 2>/dev/null; $INDEP || rm -rf $TMPDIR 2>/dev/null;
mkdir -p $BBDIR 2>/dev/null mkdir -p $BBDIR 2>/dev/null
touch $EXBIN $BBBIN; chmod 755 $EXBIN $BBBIN touch $EXBIN; touch $BBBIN; chmod 755 $EXBIN $BBBIN
echo -ne $EX_ARM > $EXBIN echo -ne $EX_ARM > $EXBIN
if $EXBIN --test 2>/dev/null; then if $EXBIN --test 2>/dev/null; then
echo $BB_ARM | $EXBIN > $BBBIN echo $BB_ARM | $EXBIN > $BBBIN