Change -e to -f
This commit is contained in:
parent
19766ceac4
commit
535e8ce953
|
@ -142,7 +142,7 @@ prompt_drive() {
|
|||
|
||||
partition() {
|
||||
print_phase "Disk partitioning"
|
||||
[ -e /bin/parted ] || download_parted
|
||||
[ -f /bin/parted ] || download_parted
|
||||
|
||||
echo -n "Partitioning drive..."
|
||||
parted --script "$DRIVE_TARGET" \
|
||||
|
|
|
@ -401,7 +401,7 @@ append_line() {
|
|||
}
|
||||
|
||||
configure_doas() {
|
||||
[ -e /bin/doas ] || return 0
|
||||
[ -f /bin/doas ] || return 0
|
||||
echo "Configuring doas..."
|
||||
prompt_user 'doas will be configured'
|
||||
local DOAS_USER="$USER_OUT"
|
||||
|
|
Loading…
Reference in New Issue