Skip to content

Commit fdf5d8f

Browse files
committed
forgot a &&. Also updated error message for empty rootoverlay/
1 parent d5e47d7 commit fdf5d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen_cloud_template.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ EOF
327327
# copy template
328328
submsg "Copying Overlay..."
329329
if [ -d "${TARGET}"/rootoverlay/ ];then
330-
as_root cp -r "${TARGET}"/rootoverlay/* "${mount_point}/" || warn "Copying root template threw a code, check it"
330+
as_root cp -r "${TARGET}"/rootoverlay/* "${mount_point}/" || warn "Could not copy root overlay. If rootoverlay/ is empty you can ignore this."
331331
fi
332332
as_root cp "${SCRIPT_BASE_DIR}/init.arch.sh" "${mount_point}" || warn "Could not copy initialization script to chroot!"
333333
as_root cp "${TARGET}/init.arch.conf" "${mount_point}" || exit_with_error 1 "Could not copy initialization config to chroot!"
334-
[ -f "${TARGET}/init.arch.local.sh" ] as_root cp "${TARGET}/init.arch.local.sh" "${mount_point}" || exit_with_error 1 "Could not copy local initializtion script to chroot!"
334+
[ -f "${TARGET}/init.arch.local.sh" ] && as_root cp "${TARGET}/init.arch.local.sh" "${mount_point}" || exit_with_error 1 "Could not copy local initializtion script to chroot!"
335335

336336
# initialize with script
337337
submsg "Running Initalization Script..."

0 commit comments

Comments
 (0)