You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
454 B
Bash
25 lines
454 B
Bash
#!/sbin/sh
|
|
# This script is only used to test debug builds
|
|
|
|
umask 022
|
|
|
|
API=$(getprop ro.build.version.sdk)
|
|
OUTFD=$2
|
|
ZIPFILE=$3
|
|
MODPATH="${ZIPFILE%/*}"
|
|
|
|
ui_print() { echo "$1"; }
|
|
abort() {
|
|
ui_print "$1"
|
|
[ -f $MODPATH/customize.sh ] && rm -f $MODPATH/customize.sh
|
|
exit 1
|
|
}
|
|
|
|
ui_print "! Using rootless installer test script"
|
|
|
|
unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2
|
|
|
|
[ -f $MODPATH/customize.sh ] && . $MODPATH/customize.sh
|
|
|
|
ui_print "- Done"
|