Update doco

This commit is contained in:
Matt Spurrier 2018-12-02 23:10:16 +08:00 committed by GitHub
parent 73675cd237
commit e3c5b1fb09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,7 @@
#!/bin/bash #!/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 for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do
if [ -h ~/$file ]; then if [ -h ~/$file ]; then
rm -f ~/$file rm -f ~/$file
@ -7,4 +10,5 @@ for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do
mv -f ~/$file{.dtbak,} mv -f ~/$file{.dtbak,}
fi fi
done done
echo "Uninstalled" echo "Uninstalled"