1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Linux: during uninstall, output error message to STDERR instead of STDOUT for better compatibility with package managers

This commit is contained in:
Mounir IDRASSI
2019-11-08 10:17:30 +01:00
parent 8d24022bda
commit 8c6838e85c
3 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
V="$(mount | grep veracrypt_aux_mnt)" V="$(mount | grep veracrypt_aux_mnt)"
if [ ! -z "$V" ] if [ ! -z "$V" ]
then then
echo "Error: All VeraCrypt volumes must be dismounted first." echo "Error: All VeraCrypt volumes must be dismounted first." >&2
exit 1 exit 1
else else
exit 0 exit 0

View File

@@ -2,7 +2,7 @@
V="$(mount | grep veracrypt_aux_mnt)" V="$(mount | grep veracrypt_aux_mnt)"
if [ ! -z "$V" ] if [ ! -z "$V" ]
then then
echo "Error: All VeraCrypt volumes must be dismounted first." echo "Error: All VeraCrypt volumes must be dismounted first." >&2
exit 1 exit 1
else else
exit 0 exit 0

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
V="$(mount | grep veracrypt_aux_mnt)" V="$(mount | grep veracrypt_aux_mnt)"
[ "$V" ] && echo Error: All volumes must be dismounted first. && exit 1 [ "$V" ] && echo Error: All volumes must be dismounted first. >&2 && exit 1
rm -f /usr/bin/veracrypt rm -f /usr/bin/veracrypt
rm -f /usr/share/applications/veracrypt.desktop rm -f /usr/share/applications/veracrypt.desktop