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
|
||||
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
|
||||
sudo /usr/bin/dscl . -delete "/Users/nixbld$i" || true
|
||||
done
|
||||
|
@ -64,9 +71,6 @@ verify
|
|||
|
||||
set -eux
|
||||
|
||||
cat ~/.profile | grep -v nix-profile > ~/.profile-next
|
||||
mv ~/.profile-next ~/.profile
|
||||
|
||||
cleanup
|
||||
|
||||
yes | ./install
|
||||
|
|
Loading…
Reference in a new issue