File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ TARGET_ARCH="${TARGET_ARCH:-x86_64}"
88HOST_ARCH=" $( uname -m) "
99
1010function install_dependencies {
11- apt update
12- local packages=" bc flex bison gcc make libelf-dev libssl-dev squashfs-tools busybox-static tree cpio curl patch"
11+ local packages=(
12+ bc flex bison gcc make libelf-dev libssl-dev squashfs-tools busybox-static tree cpio curl patch
13+ )
1314
14- if [[ " $TARGET_ARCH " == " arm64" && " $HOST_ARCH " != " aarch64" ]]; then
15- packages=" $packages gcc-aarch64-linux-gnu"
16- fi
15+ [[ " ${TARGET_ARCH} " == " arm64" && " ${HOST_ARCH} " != " aarch64" ]] && packages+=( gcc-aarch64-linux-gnu )
1716
18- apt install -y $packages
17+ apt update
18+ apt install -y " ${packages[@]} "
1919}
2020
2121# prints the git tag corresponding to the newest and best matching the provided kernel version $1
You can’t perform that action at this time.
0 commit comments