mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Fix bug of the file existing check
This commit is contained in:
parent
5bba11567e
commit
a7c48adc9e
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ fi
|
|||
printf %s "${PASSPHRASE}" | cryptsetup open -d - "${DEV}${CRYPTPARTITION}" ${CRYPTPARTNAME}
|
||||
|
||||
# Check whether successful open. If mapped, it is successful.
|
||||
if [ ! -d /dev/mapper/${CRYPTPARTNAME} ] ; then
|
||||
if [ ! -e /dev/mapper/${CRYPTPARTNAME} ] ; then
|
||||
cat <<HEREDOC 1>&2
|
||||
***** ERROR : Cannot open LUKS volume ${CRYPTPARTNAME} on ${DEV}${CRYPTPARTITION}. *****
|
||||
Check the passphrase
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue