Change -e to -f

This commit is contained in:
Augusto Gunsch 2021-08-12 12:14:38 -03:00
parent 19766ceac4
commit 535e8ce953
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 2 additions and 2 deletions

View File

@ -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" \

View File

@ -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"