File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -47,25 +47,24 @@ check_busybox()
47
47
{
48
48
export device_architecture=$( do_shell " uname -m" )
49
49
export busybox_exists=$( do_shell " if [ -d /sbin/busybox ]; then echo true; else echo false; fi" )
50
- mkdir busybox
51
50
52
51
if [ $busybox_exists = " true" ]; then
53
52
echo ' Using already installed busybox'
54
53
else
55
54
if [ $device_architecture = x86_64 ]; then
56
- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox -O busybox/busybox
55
+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox
57
56
elif [ $device_architecture = armv7l ]; then
58
- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox -O busybox/busybox
57
+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
59
58
elif [ $device_architecture = arm64 ]; then
60
- wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox -O busybox/busybox
59
+ wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
61
60
fi
62
61
63
- adb push busybox/busybox /sbin/busybox
62
+ adb push busybox /sbin/busybox
64
63
do_shell " chmod +x /sbin/busybox"
65
64
do_shell " /sbin/busybox --install"
66
65
fi
67
66
68
- rm busybox -r
67
+ rm busybox
69
68
}
70
69
71
70
convert_android_img ()
You can’t perform that action at this time.
0 commit comments