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