From 535e8ce953c77ca34493104b32a5326e2722127c Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Thu, 12 Aug 2021 12:14:38 -0300 Subject: [PATCH] Change -e to -f --- install.sh | 2 +- post-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 5d5a998..5fc59a8 100755 --- a/install.sh +++ b/install.sh @@ -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" \ diff --git a/post-install.sh b/post-install.sh index bf93e93..f0bf9b9 100755 --- a/post-install.sh +++ b/post-install.sh @@ -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"