Skip to content

Commit 07e25b6

Browse files
Add files via upload
1 parent 01f7fc6 commit 07e25b6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

uninstall.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)