| 
									
										
										
										
											2021-01-17 17:45:32 +00:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-06 18:44:50 +00:00
										 |  |  | ## DOWNLOADED FROM GIT REPO ## | 
					
						
							| 
									
										
										
										
											2021-01-17 17:45:32 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # 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 | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  |     if [ -e ~/${file}.dtbak ]; then | 
					
						
							|  |  |  |         mv -f ~/$file{.dtbak,} | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  | done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | echo "Uninstalled" |