check if target mounted before copying log ;)

This commit is contained in:
Bernhard Landauer 2017-02-27 11:22:40 +01:00
parent 429f878a88
commit 4b8f6f53e3

View File

@ -47,11 +47,13 @@ main_menu_online() {
*) dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "$_CloseInstBody" 0 0
if [[ $? -eq 0 ]]; then
check_for_error "exit installer."
if [[ -e /mnt/usr ]]; then
dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "\n$_LogInfo\n" 0 0
if [[ $? -eq 0 ]]; then
[[ -e /mnt/.m-a.log ]] && cat ${LOGFILE} >> /mnt/.m-a.log
install -m700 ${LOGFILE} /mnt/.m-a.log
fi
fi
umount_partitions
clear
exit 0