Skip to content

Commit 8a70558

Browse files
iavclaude
andcommitted
extensions: uwe5622-allwinner: quote variables in destructive commands (#9400 P0)
Quote $SDCARD in chroot calls and $destination, $SRC, ${ARCH} in cp, mkdir, and install commands to prevent word splitting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f4355e2 commit 8a70558

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

extensions/uwe5622-allwinner.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ function post_family_config__add_uwe5622_modules() {
1111

1212
function post_family_tweaks__enable_uwe5622_services() {
1313
# install and enable Bluetooth
14-
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable aw859a-bluetooth.service >/dev/null 2>&1"
15-
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable aw859a-wifi.service >/dev/null 2>&1"
14+
chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload enable aw859a-bluetooth.service >/dev/null 2>&1"
15+
chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload enable aw859a-wifi.service >/dev/null 2>&1"
1616
}
1717

1818
function post_family_tweaks_bsp__add_uwe5622_services() {
19-
run_host_command_logged mkdir -p $destination/lib/systemd/system/
20-
run_host_command_logged cp $SRC/packages/bsp/sunxi/aw859a-bluetooth.service $destination/lib/systemd/system/
21-
run_host_command_logged cp $SRC/packages/bsp/sunxi/aw859a-wifi.service $destination/lib/systemd/system/
22-
run_host_command_logged install -m 755 $SRC/packages/blobs/bt/hciattach/hciattach_opi_${ARCH} $destination/usr/bin/hciattach_opi
19+
run_host_command_logged mkdir -p "${destination}/lib/systemd/system/"
20+
run_host_command_logged cp "${SRC}/packages/bsp/sunxi/aw859a-bluetooth.service" "${destination}/lib/systemd/system/"
21+
run_host_command_logged cp "${SRC}/packages/bsp/sunxi/aw859a-wifi.service" "${destination}/lib/systemd/system/"
22+
run_host_command_logged install -m 755 "${SRC}/packages/blobs/bt/hciattach/hciattach_opi_${ARCH}" "${destination}/usr/bin/hciattach_opi"
2323
}

0 commit comments

Comments
 (0)