Skip to content

Commit a03965b

Browse files
committed
Use tabs to match coding style
1 parent 5c0be56 commit a03965b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

halium-install

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,26 @@ do_chroot()
4545

4646
check_busybox()
4747
{
48-
export device_architecture=$(do_shell "uname -m")
49-
export busybox_exists=$(do_shell "if [ -d /sbin/busybox ]; then echo true; else echo false; fi")
50-
51-
if [ $busybox_exists = "true" ]; then
52-
echo 'Using already installed busybox'
53-
else
54-
if [ $device_architecture = x86_64 ]; then
55-
wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox
56-
elif [ $device_architecture = armv7l ]; then
57-
wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
58-
elif [ $device_architecture = arm64 ]; then
59-
wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
60-
fi
61-
62-
adb push busybox /sbin/busybox
63-
do_shell "chmod +x /sbin/busybox"
64-
do_shell "/sbin/busybox --install /sbin/"
65-
fi
66-
67-
rm busybox
48+
export device_architecture=$(do_shell "uname -m")
49+
export busybox_exists=$(do_shell "if [ -d /sbin/busybox ]; then echo true; else echo false; fi")
50+
51+
if [ $busybox_exists = "true" ]; then
52+
echo 'Using already installed busybox'
53+
else
54+
if [ $device_architecture = x86_64 ]; then
55+
wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/intel/static/bin/busybox
56+
elif [ $device_architecture = armv7l ]; then
57+
wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
58+
elif [ $device_architecture = arm64 ]; then
59+
wget https://github.com/meefik/busybox/raw/master/app/src/main/assets/arm/static/bin/busybox
60+
fi
61+
62+
adb push busybox /sbin/busybox
63+
do_shell "chmod +x /sbin/busybox"
64+
do_shell "/sbin/busybox --install /sbin/"
65+
fi
66+
67+
rm busybox
6868
}
6969

7070
convert_android_img()

0 commit comments

Comments
 (0)