mirror of
https://github.com/prurigro/cryptobox.git
synced 2024-11-21 05:42:32 -05:00
Use -e instead of -f when checking for existence so this can be used to mount stuff in /dev
This commit is contained in:
parent
d5610d4c32
commit
d939c56fef
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ function mount_image {
|
|||
mountpoint="$2"
|
||||
|
||||
# Exit with an error if either the image file or mount point do not exist
|
||||
[[ ! -f "$filename" ]] && error_exit "${c_m}$filename${c_w} does not exist"
|
||||
[[ ! -e "$filename" ]] && error_exit "${c_m}$filename${c_w} does not exist"
|
||||
[[ -e "$mountpoint" ]] || error_exit "${c_m}$mountpoint${c_w} does not exist"
|
||||
[[ -d "$mountpoint" ]] || error_exit "${c_m}$mountpoint${c_w} is not a directory"
|
||||
|
||||
|
|
Loading…
Reference in a new issue