From e3c5b1fb095e34a2be8fb4df58469a626c53ee98 Mon Sep 17 00:00:00 2001 From: Matt Spurrier <3377029+digitalsparky@users.noreply.github.com> Date: Sun, 2 Dec 2018 23:10:16 +0800 Subject: [PATCH] Update doco --- uninstall.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uninstall.sh b/uninstall.sh index 52b3c17..0db1bee 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,7 @@ #!/bin/bash + +# Loop through all the dotfiles, if the file is a symlink then remove it +# Then if the backup file exists, restore it to it's original location for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do if [ -h ~/$file ]; then rm -f ~/$file @@ -7,4 +10,5 @@ for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do mv -f ~/$file{.dtbak,} fi done + echo "Uninstalled"