summaryrefslogtreecommitdiff
path: root/bin/unskel
diff options
context:
space:
mode:
Diffstat (limited to 'bin/unskel')
-rwxr-xr-xbin/unskel25
1 files changed, 0 insertions, 25 deletions
diff --git a/bin/unskel b/bin/unskel
deleted file mode 100755
index 80f77d53..00000000
--- a/bin/unskel
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-# Removes contents of /etc/skel in home directory. Checks for
-# modifications, so should always be safe to run.
-
-SKEL="/etc/skel"
-torm=""
-
-for skelfile in $(find $SKEL -maxdepth 1 -type f | sed -e "s|${SKEL}/||"); do
- # The following conditional passes if the file in $HOME is the
- # *same* as the file in $SKEL, so it ought to be deleted.
- if diff -q "$SKEL/$skelfile" "$HOME/$skelfile" >/dev/null 2>&1; then
- torm="$torm $HOME/$skelfile"
- fi
-done
-
-[ "$torm" = "" ] || rm -rf $torm
-
-# on Debian systems root gets a special .bashrc and .profile
-if diff -q /usr/share/base-files/dot.bashrc "$HOME/.bashrc" >/dev/null 2>&1; then
- rm -f "$HOME/.bashrc"
-fi
-if diff -q /usr/share/base-files/dot.profile "$HOME/.profile" >/dev/null 2>&1; then
- rm -f "$HOME/.profile"
-fi