-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Linux build: remove symlinks only if they exist #8781
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
Linux build: remove symlinks only if they exist #8781
Conversation
Since the user will probably still need superuser privilages later, maybe it's also a good idea to use
ln -s foo bar || sudo ln -s foo bar
instead of just ln -s foo bar
when creating a symlink?
So it will ask the user for sudo password only if needed.
@MrMebelMan thanks for the PR! I'm merging it right now; about the second part, it would complicate the script a bit but could be a good idea for systems lacking sudo
(not a very wide problem probably 😉 )
Thanks 🙏
Uh oh!
There was an error while loading. Please reload this page.
The message
"Removing symlink failed. Hope that's OK. If not then rerun as root with sudo."
appears even when there's no symlink (for example, when installing for the first time). I don't think that a user should be adviced to run it as root in this case.