diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-26 00:33:23 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-26 00:33:23 (EDT) |
commit | 8021a9c2cc8e4b1501c626451f6dcbd89f4c1b8d (patch) | |
tree | 619712cbe2dc79723e3e660d73f44b6e3d99e687 /src/cmd/mkinitramfs.sh | |
parent | 8bd88f7d4da4ac4ad673262fa855c96a8670de0a (diff) |
src/cmd/mkinitramfs.sh: Delimit command operands
Diffstat (limited to 'src/cmd/mkinitramfs.sh')
-rw-r--r-- | src/cmd/mkinitramfs.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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}" |