diff options
-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}" |