-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclean
More file actions
executable file
·33 lines (25 loc) · 1.01 KB
/
clean
File metadata and controls
executable file
·33 lines (25 loc) · 1.01 KB
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
#!/bin/bash
if [ -z ${XDG_CONFIG_HOME+x} ]; \
then config_dir="$HOME/.config/quibble"; echo "XDG_CONFIG_HOME is unset, attempting to clean $config_dir"; \
else config_dir="$XDG_CONFIG_HOME/quibble"; echo "attempting to clean $config_dir..."; \
fi
rm -r $config_dir
echo "Remove /usr/local/lib/libquibble.so? [Y/n]"
read ans
if [ "$ans" = "n" ]; \
then echo "/usr/local/lib/libquibble.so may still be in your system!"; \
else echo "removing /usr/local/lib/libquibble.so!" ;sudo rm /usr/local/lib/libquibble.so;
fi
echo "Remove /usr/local/include/quibble.h? [Y/n]"
read ans
if [ "$ans" = "n" ]; \
then echo "/usr/local/include/quibble.h may still be in your system!"; \
else echo "removing /usr/local/include/quibble.h!" ;sudo rm /usr/local/include/quibble.h;
fi
echo "Remove /usr/local/bin/qbinfo? [Y/n]"
read ans
if [ "$ans" = "n" ]; \
then echo "/usr/local/bin/qbinfo may still be in your system!"; \
else echo "removing /usr/local/bin/qbinfo!" ;sudo rm /usr/local/bin/qbinfo;
fi
echo "done!"