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
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
#!/bin/sh
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/share/applications/veracrypt.desktop