Clean up nix hints from the old insstaller
This commit is contained in:
		
							parent
							
								
									61ea9e9867
								
							
						
					
					
						commit
						92ca93528f
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
					@ -19,6 +19,13 @@ cleanup() {
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    for file in ~/.bash_profile ~/.bash_login ~/.profile ~/.zshenv ~/.zprofile ~/.zshrc ~/.zlogin; do
 | 
				
			||||||
 | 
					        cat "$file" | grep -v nix-profile > "$file.next"
 | 
				
			||||||
 | 
					        mv "$file.next" "$file"
 | 
				
			||||||
 | 
					    done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for i in $(seq 1 $(sysctl -n hw.ncpu)); do
 | 
					    for i in $(seq 1 $(sysctl -n hw.ncpu)); do
 | 
				
			||||||
        sudo /usr/bin/dscl . -delete "/Users/nixbld$i" || true
 | 
					        sudo /usr/bin/dscl . -delete "/Users/nixbld$i" || true
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
| 
						 | 
					@ -64,9 +71,6 @@ verify
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    set -eux
 | 
					    set -eux
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cat ~/.profile | grep -v nix-profile > ~/.profile-next
 | 
					 | 
				
			||||||
    mv ~/.profile-next ~/.profile
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    cleanup
 | 
					    cleanup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    yes | ./install
 | 
					    yes | ./install
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue