summaryrefslogtreecommitdiff
path: root/scripts/install-system.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-system.in')
-rwxr-xr-xscripts/install-system.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install-system.in b/scripts/install-system.in
index cf7ff263..49634a03 100755
--- a/scripts/install-system.in
+++ b/scripts/install-system.in
@@ -461,8 +461,8 @@ install_root_filesystem () {
output+=$(cp /live/image/live/vmlinuz-* $rootfsdir/boot/)
status=$?
output+=$(cp /live/image/live/initrd.img-* $rootfsdir/boot/initrd.img)
- status=$status || $?
- if [ "$status" != 0 ]; then
+ status=$status$?
+ if [ "$status" -ne 0 ]; then
echo -e "Error trying to copy the bootfiles.\nPlease see install log for more details.\nExiting.
.."
echo -e "Error trying to copy the bootfiles.\ncp /boot/initrd.img $rootfsdir/boot/\n$output" >> $INSTALL_LOG