Skip to content

Commit 3d01ae7

Browse files
committed
Don't create an unnecessary new folder
1 parent 5eb5be4 commit 3d01ae7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

halium-install

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,24 @@ check_busybox()
4747
{
4848
export device_architecture=$(do_shell "uname -m")
4949
export busybox_exists=$(do_shell "if [ -d /sbin/busybox ]; then echo true; else echo false; fi")
50-
mkdir busybox
5150

5251
if [ $busybox_exists = "true" ]; then
5352
echo 'Using already installed busybox'
5453
else
5554
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
5756
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
5958
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
6160
fi
6261

63-
adb push busybox/busybox /sbin/busybox
62+
adb push busybox /sbin/busybox
6463
do_shell "chmod +x /sbin/busybox"
6564
do_shell "/sbin/busybox --install"
6665
fi
6766

68-
rm busybox -r
67+
rm busybox
6968
}
7069

7170
convert_android_img()

0 commit comments

Comments
 (0)