File: Uninstall.sh

package info (click to toggle)
mp3diags 1.2.03-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 6,480 kB
  • ctags: 3,962
  • sloc: cpp: 34,090; makefile: 100; xml: 97; sh: 87
file content (21 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#

#ttt1 only works for one user, but it's likely that this is the case when it's most needed

BranchSlash=`cat branch.txt`
BranchDash=`echo "$BranchSlash" | sed 's#/#-#'`
exe=MP3Diags$BranchDash

/usr/local/bin/$exe -u
sudo rm /usr/local/bin/$exe
rm ~/.config/Ciobi/$exe.conf

#transl=/usr/local/share/mp3diags"$BranchDash"/translations
share=/usr/local/share/mp3diags"$BranchDash"
sudo rm -rf "$share"

echo
echo "If other users started MP3 Diags as well, they will have to remove their configuration file manually (it\'s ~/.config/Ciobi/Mp3Diags.conf)"
echo "Sessions files (.ini and associated .dat) can only be removed manually"
echo