diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2018-12-23 23:54:25 -0600 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2018-12-23 23:54:25 -0600 |
commit | a739f196cba9e5c4376e97b1ac95e1d15b1ccb55 (patch) | |
tree | eab9260f076de9ba9bf81e44c727c64a963a2895 /test/rm_hardinfo.sh | |
parent | 3972650bc68dc3b846b6eabfd83e37872005741e (diff) |
Remove orig content.
Diffstat (limited to 'test/rm_hardinfo.sh')
-rw-r--r-- | test/rm_hardinfo.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/rm_hardinfo.sh b/test/rm_hardinfo.sh deleted file mode 100644 index 8cd58075..00000000 --- a/test/rm_hardinfo.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!bash - -# when you just want it all gone. -# -# it is not smart in any way, and will screw up your package manager -# if hardinfo is installed as a package. - -if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root." - exit 1 -fi - -remove_hardinfo() { - BASEDER="$1" - echo "Removing hardinfo from $BASEDER ..." - rm -rf "$BASEDER/share/hardinfo" - rm -rf "$BASEDER/lib/hardinfo" - rm -f "$BASEDER"/share/locale/*/LC_MESSAGES/hardinfo.mo - rm -f "$BASEDER/bin/hardinfo" - rm -f "$BASEDER/share/applications/hardinfo.desktop" - rm -f "$BASEDER/share/doc/hardinfo" - rm -f "$BASEDER/share/man/man1/hardinfo.1.gz" - rm -f "$BASEDER/share/pixmaps/hardinfo.xpm" - rm -f "$BASEDER/share/menu/hardinfo" - #locate -e hardinfo | grep "$BASEDER" -} - -remove_hardinfo "/usr/local" -remove_hardinfo "/usr" -# add some other base install path here |