-
Notifications
You must be signed in to change notification settings - Fork 197
/
uninstall.sh
executable file
·53 lines (44 loc) · 1.17 KB
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
declare -f dialog_msg >/dev/null || {
echo "To uninstall, please run jarvis -r"
exit 1
}
jv_yesno "Are you sure you want to uninstall Jarvis and all its dependancies?" || exit 1
shopt -s nullglob
jv_warning "Uninstalling plugins"
cd plugins_installed
for plugin in *; do
echo "uninstalling $plugin..."
store_plugin_uninstall $plugin
done
cd ../
jv_warning "Uninstalling TTS engines"
cd tts_engines
for tts_engine in *; do
echo "uninstalling $tts_engine..."
cd $tts_engine
uninstall.sh
cd ../
done
cd ../
jv_warning "Uninstalling STT engines"
cd stt_engines
for stt_engine in *; do
echo "uninstalling $stt_engine..."
cd $stt_engine
uninstall.sh
cd ../
done
cd ../
jv_warning "Uninstalling jarvis core dependencies"
jv_remove jq sox libsox-fmt-mp3
jv_warning "Removing jarvis folder"
if jv_yesno "Do you want to backup your jarvis config?"; then
cp -R config ~/jarvis_backup/
echo "config/ has been copied into ~/jarvis_backup"
fi
cd ../
rm -rf jarvis
jv_success "Jarvis has been uninstalled successfuly"
jv_debug "If you are not happy with Jarvis, please let me know the reasons at [email protected]"
exit 0