We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f7fc6 commit 07e25b6Copy full SHA for 07e25b6
uninstall.sh
@@ -0,0 +1,17 @@
1
+# Don't modify anything after this
2
+[[ -f "$INFO" ]] && {
3
+ while read LINE; do
4
+ if [[ "$(echo -n "$LINE" | tail -c 1)" == "~" ]]; then
5
+ continue
6
+ elif [[ -f "$LINE~" ]]; then
7
+ mv -f "$LINE~" "$LINE"
8
+ else
9
+ rm -f "$LINE"
10
+ while true; do
11
+ LINE=$(dirname $LINE)
12
+ [[ "$(ls -A $LINE 2>/dev/null)" ]] && break 1 || rm -rf "$LINE"
13
+ done
14
+ fi
15
+ done < $INFO
16
+ rm -f "$INFO"
17
+}
0 commit comments