mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06: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:
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}
|
||||
|
||||
Reference in New Issue
Block a user