mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-08 01:10:26 +00:00
fix check_base
This commit is contained in:
parent
a9542f5fd8
commit
28917c59d5
@ -361,6 +361,7 @@ arch_chroot() {
|
||||
check_mount() {
|
||||
if [[ $(lsblk -o MOUNTPOINT | grep ${MOUNTPOINT}) == "" ]]; then
|
||||
DIALOG " $_ErrTitle " --msgbox "$_ErrNoMount" 0 0
|
||||
ANSWER=0
|
||||
HIGHLIGHT=0
|
||||
return 1
|
||||
fi
|
||||
@ -368,12 +369,16 @@ check_mount() {
|
||||
|
||||
# Ensure that Manjaro has been installed
|
||||
check_base() {
|
||||
if check_mount; then
|
||||
check_mount
|
||||
if [[ $? -eq 0 ]]; then
|
||||
if [[ ! -e /mnt/.base_installed ]]; then
|
||||
DIALOG " $_ErrTitle " --msgbox "$_ErrNoBase" 0 0
|
||||
ANSWER=1
|
||||
HIGHLIGHT=1
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user