Open jeevithakannan2 opened 3 weeks ago
@jeevithakannan2 is attempting to deploy a commit to the FlutterTools Team on Vercel.
A member of the Team first needs to authorize it.
I've just hit this issue on Ubuntu 24. When installing, it downloads and unpacks FVM, but can't create the symbolic link as it doesn't have permissions to write to /usr/local/bin/
I can confirm this script fixes the issue, by asking for permission as it installs. I came here to patch it myself but glad someone beat me to it.
Running the script as root will cause issue as the fvm binary resides in /root
This PR proposes the following changes
Check if the script is running as root.
Check for the correct escalation tool like
sudo
ordoas
.Use escalation inside the script as symlinking to
/usr
requires escalated privilegesResolves https://github.com/leoafarias/fvm/issues/796