mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-05 20:17:43 +00:00
24 lines
392 B
Bash
Executable File
24 lines
392 B
Bash
Executable File
#!/bin/sh
|
|
PKG=org.radare.radare2
|
|
cd /
|
|
|
|
pkgutil --files ${PKG} > /dev/null || exit 1
|
|
|
|
# delete files
|
|
FILES="$(pkgutil --only-files --files ${PKG})"
|
|
for a in ${FILES} ; do
|
|
if [ -f "${a}" ]; then
|
|
rm "$a"
|
|
# | xargs rm -i
|
|
fi
|
|
done
|
|
|
|
# delete empty directories
|
|
FILES="$(pkgutil --only-dirs --files ${PKG})"
|
|
for a in ${FILES} ; do
|
|
if [ -d "${a}" ]; then
|
|
rmdir "$a"
|
|
fi
|
|
done
|
|
pkgutil --forget ${PKG}
|