diff --git a/fvm.sh b/fvm.sh index f2fa5d4..4f9aeba 100755 --- a/fvm.sh +++ b/fvm.sh @@ -50,7 +50,7 @@ function init(){ mkdir -p ${FVM_VERSIONS_DIR} fi echo FLUTTER_ROOT="$FVM_CURRENT_LINK" - echo PATH="$FLUTTER_ROOT/bin:$PATH" + echo PATH="$FVM_CURRENT_LINK/bin:$PATH" } function list(){ print_green "current => `current`" @@ -178,5 +178,3 @@ function main(){ esac } main "$@" - - diff --git a/init.sh b/init.sh index e6650f8..f0868bf 100755 --- a/init.sh +++ b/init.sh @@ -4,6 +4,5 @@ alias fvm="`brew --prefix`/opt/fvm/fvm.sh" for element in `fvm init` do - local export_cmd="export $element" - eval $export_cmd + export $element done