-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremarvin_remove.sh
More file actions
24 lines (20 loc) · 867 Bytes
/
remarvin_remove.sh
File metadata and controls
24 lines (20 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
LOCAL="/home/root/.local"
CONFIG="/home/root/.config/remarkable"
function uninstall(){
chattr -R -i $LOCAL/share/remarkable $LOCAL/share/remarvin
if [[ -f $LOCAL/share/remarvin ]];
then
rm -r $LOCAL/share/remarkable $LOCAL/share/remarvin
mv $LOCAL/Profile-Main/* $LOCAL/share/ && \
rm -r $LOCAL/Profile-Main
else
echo "Remarvin doesn't seem to be set up."
fi
}
echo "This removal script is still to be tested properly. You may also run chattr -i on the share directory in $HOME/.local and remove it and move Profile-Main in its place."
read -p "Do you understand that you are about to make changes to your system that may lead to data loss or other unforeseen behavior and that you are doing this on your own responsibility? (y/N)" response
case $response in
[Yy]* ) uninstall break;;
* ) echo "Goodbye.";exit 0;;
esac