leoafarias / fvm

Flutter Version Management: A simple CLI to manage Flutter SDK versions.
https://fvm.app
MIT License
4.73k stars 233 forks source link

fix: installation bug #792

Open jeevithakannan2 opened 3 weeks ago

jeevithakannan2 commented 3 weeks ago

Running the script as root will cause issue as the fvm binary resides in /root

readlink /usr/local/bin/fvm 
/root/.fvm_flutter/bin/fvm

This PR proposes the following changes

vercel[bot] commented 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.

silverark commented 1 week ago

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.