From 8021a9c2cc8e4b1501c626451f6dcbd89f4c1b8d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 26 Apr 2019 00:33:23 -0400 Subject: src/cmd/mkinitramfs.sh: Delimit command operands --- (limited to 'src/cmd') diff --git a/src/cmd/mkinitramfs.sh b/src/cmd/mkinitramfs.sh index 8580000..08543ee 100644 --- a/src/cmd/mkinitramfs.sh +++ b/src/cmd/mkinitramfs.sh @@ -63,17 +63,17 @@ cmd_mkinitramfs_main() [ "x${dev}" != 'x' ] && block_umount "${root}" return 2 fi - arch="$(cat "${root}/etc/proteanos_arch")" - plat="$(cat "${root}/etc/proteanos_plat")" + arch="$(cat -- "${root}/etc/proteanos_arch")" + plat="$(cat -- "${root}/etc/proteanos_plat")" if ! img="$(profile_find_kernel "${root}" "${arch}" "${plat}")"; then error "$(get_msg 'cmd_mkinitramfs_kernel_not_found')" [ "x${dev}" != 'x' ] && block_umount "${root}" return 2 fi - cp -p "${root}/${img}" "${linux_output}" + cp -p -- "${root}/${img}" "${linux_output}" - (cd "${root}" && profile_make_initramfs "${arch}" "${plat}") \ + (cd -- "${root}" && profile_make_initramfs "${arch}" "${plat}") \ >"${initramfs_output}" [ "x${dev}" != 'x' ] && block_umount "${root}" -- cgit v0.9.1