mirror of https://github.com/nirenjan/dotfiles.git
				
				
				
			Fix creating symlink for the first time
							parent
							
								
									612f7915e3
								
							
						
					
					
						commit
						489813cdc8
					
				
							
								
								
									
										3
									
								
								install
								
								
								
								
							
							
						
						
									
										3
									
								
								install
								
								
								
								
							|  | @ -29,6 +29,7 @@ lnfile() | ||||||
|     FILE_NAME=$(basename $2) |     FILE_NAME=$(basename $2) | ||||||
|     DEST_FILE="$DF_PATH/$1" |     DEST_FILE="$DF_PATH/$1" | ||||||
|     WRITE_LINK=0 |     WRITE_LINK=0 | ||||||
|  | 
 | ||||||
|     # See if the target exists |     # See if the target exists | ||||||
|     if [[ -e $2 ]] |     if [[ -e $2 ]] | ||||||
|     then |     then | ||||||
|  | @ -60,6 +61,8 @@ lnfile() | ||||||
|             mv -v $2 ${2}.bak |             mv -v $2 ${2}.bak | ||||||
|             WRITE_LINK=1 |             WRITE_LINK=1 | ||||||
|         fi |         fi | ||||||
|  |     else | ||||||
|  |         WRITE_LINK=1 | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     if [[ $WRITE_LINK == 1 ]] |     if [[ $WRITE_LINK == 1 ]] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue