File: uninstall

package info (click to toggle)
cmus 2.7.1%2Bgit20160225-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,848 kB
  • sloc: ansic: 35,866; sh: 1,548; makefile: 260; python: 159
file content (12 lines) | stat: -rwxr-xr-x 193 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

test -f "$INSTALL_LOG" || exit 0

sort "$INSTALL_LOG" | uniq | \
while read file
do
	echo "RM $file"
	rm -f "$file"
	rmdir -p "`dirname $file`" 2>/dev/null
done
rm -f "$INSTALL_LOG"