From 8dd14fc4522fe8aee5f569341fbe5cebec6abd70 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 8 Dec 2022 22:14:13 +0300 Subject: [PATCH] Use -e for file check in other places as well, just to be sure --- windows2usb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows2usb b/windows2usb index 483e64b..203cbff 100755 --- a/windows2usb +++ b/windows2usb @@ -140,9 +140,9 @@ function get_dev_partition_num() { } function write_uefintfs() { - if [ -a "$dirpath/uefi-ntfs.img" ]; then + if [ -e "$dirpath/uefi-ntfs.img" ]; then cat "$dirpath/uefi-ntfs.img" > "$1" - elif [ -a "/usr/share/windows2usb/uefi-ntfs.img" ]; then + elif [ -e "/usr/share/windows2usb/uefi-ntfs.img" ]; then cat "/usr/share/windows2usb/uefi-ntfs.img" > "$1" fi }