VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/Linux/veracrypt-uninstall.sh
blob: 82ea309654418c54da3f9d866371d9b6a2b97744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
V="$(mount | grep veracrypt_aux_mnt)"
[ "$V" ] && echo Error: All volumes must be dismounted first. && exit 1

rm -f /usr/bin/veracrypt
rm -f /usr/share/veracrypt/doc/License.txt
rm -f '/usr/share/veracrypt/doc/VeraCrypt User Guide.pdf'
rm -f /usr/share/applications/veracrypt.desktop
rm -f /usr/share/pixmaps/veracrypt.xpm
rmdir /usr/share/veracrypt/doc /usr/share/veracrypt

echo VeraCrypt uninstalled.
rm -f /usr/bin/veracrypt-uninstall.sh