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

This commit is contained in:
Mounir IDRASSI committed 2019-11-09 00:26:14 +01:00
1 parent 8d24022bda
commit 8c6838e85c
3 files changed
+3 -3

No files matched your search

+1 -1
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
+1 -1
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
+1 -1
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