mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 03:53:29 +01:00
Fix mount.veracrypt (#1064)
Reverses order of --non-interactive and --text to actually make it work, also fix --pim working.
This commit is contained in:
parent
8072207eb6
commit
1043bff967
4
src/Setup/Linux/mount.veracrypt
Normal file → Executable file
4
src/Setup/Linux/mount.veracrypt
Normal file → Executable file
@ -13,11 +13,11 @@ for arg in $*; do
|
||||
fs=*) VCOPTIONS=(${VCOPTIONS[*]} --filesystem=${arg#*=});;
|
||||
keyfiles=*) VCOPTIONS=(${VCOPTIONS[*]} --keyfiles=${arg#*=});;
|
||||
password=*) VCOPTIONS=(${VCOPTIONS[*]} --password=${arg#*=});;
|
||||
pim=*) VCOPTIONS=(${VCOPTIONS[*]} --pim==${arg#*=});;
|
||||
pim=*) VCOPTIONS=(${VCOPTIONS[*]} --pim=${arg#*=});;
|
||||
protect-hidden=*) VCOPTIONS=(${VCOPTIONS[*]} --protect-hidden=${arg#*=});;
|
||||
slot=*) VCOPTIONS=(${VCOPTIONS[*]} --slot=${arg#*=});;
|
||||
*) OPTIONS="${OPTIONS}${arg},";;
|
||||
esac
|
||||
done
|
||||
|
||||
/usr/bin/veracrypt --non-interactive --text ${VCOPTIONS[*]} --fs-options="${OPTIONS%,*}" ${DEV} ${MNTPT}
|
||||
/usr/bin/veracrypt --text --non-interactive ${VCOPTIONS[*]} --fs-options="${OPTIONS%,*}" ${DEV} ${MNTPT}
|
||||
|
Loading…
Reference in New Issue
Block a user