Skip to content

Commit

Permalink
Do not ignore paths without $HOME variable if home is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
zolotov committed Nov 10, 2015
1 parent 5b2237d commit 34a2007
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/com/goide/sdk/GoEnvironmentGoPathModificationTracker.java
Expand Up @@ -37,9 +37,13 @@ public GoEnvironmentGoPathModificationTracker() {
if (goPath != null) {
String home = SystemProperties.getUserHome();
for (String s : StringUtil.split(goPath, File.pathSeparator)) {
if (home != null) {
pathsToTrack.add(s.replaceAll("\\$HOME", home));
if (s.contains("$HOME")) {
if (home == null) {
continue;
}
s = s.replaceAll("\\$HOME", home);
}
pathsToTrack.add(s);
}
}
recalculateFiles();
Expand Down

0 comments on commit 34a2007

Please sign in to comment.