Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/leoafarias/fvm
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Jul 16, 2020
2 parents ea242f5 + eac0a62 commit 7fe4ce6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ final kLocalProjectPubspec =

/// FVM Home directory
String get fvmHome {
var home = '';
final envVars = Platform.environment;

final fvmHome = envVars['FVM_HOME'];
if (fvmHome != null) {
return path.normalize(fvmHome);
}

var home = '';
if (Platform.isWindows) {
home = envVars['UserProfile'];
} else {
Expand Down

0 comments on commit 7fe4ce6

Please sign in to comment.