-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix: fix purge.sh script on Darwin platform #13267
Conversation
Jenkins BuildsClick to see older builds (62)
|
ec406e8
to
d495fbf
Compare
339523f
to
1450e9e
Compare
I tried to use this purge script:
This is on m1 mac |
@audriu can you try editing source nix/scripts/lib.sh
nix_install_type Should show you how exactly it fails, then you could maybe put it in a Gist so I can debug that. |
I will when next time work on this. Now everything works finally and I don't want to touch it. |
@audriu that's fine, you don't have to purge things. I just want to test how the specific |
This may be some ZSH problem. |
Thanks, but ZSH should't affect it when it's being used by another script like Also, why do you keep quoting comments? That only makes sense if you're referring to an older comment. |
After you added Bash Shebang to the scripts all works.
|
What? But all script already have a shebang. Which script specifically? |
You added it to |
Even if this script runs without errors, it looks like some residue is still left from nix after running it. |
But I really would like to understand why you got the |
it had |
There hasn't been changes to scripts since few months back in 03119837. And this PR doesn't add any shebangs either. I don't really know why your case is so special, but we need to figure it out. |
5b487a3
to
f3f1021
Compare
I've added some extra cases to the switch to handle a case when users/group was deleted but the folder remains: |
1744d95
to
1825274
Compare
1b117df
to
589d9f5
Compare
Darwin lacks `userdel` and Nix users don't appear in `/etc/passwd`. Signed-off-by: Jakub Sokołowski <jakub@status.im>
Darwin lacks
userdel
and Nix users don't appear in/etc/passwd
.