Browse Source

Fix a bug where `fnm env --multi` didn't used the default alias (#61)

The default link on `fnm env --multi` was to `aliases/default/installation`, but `/installation` isn't needed
remotes/origin/add-simple-redirecting-site
Gal Schlezinger 6 years ago committed by GitHub
parent
commit
412af76ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      executable/Env.re

6
executable/Env.re

@ -20,11 +20,7 @@ let rec makeTemporarySymlink = () => {
let%lwt suggestedName = makeTemporarySymlink(); let%lwt suggestedName = makeTemporarySymlink();
Lwt.return(suggestedName); Lwt.return(suggestedName);
} else { } else {
let%lwt _ = let%lwt _ = Lwt_unix.symlink(Directories.defaultVersion, suggestedName);
Lwt_unix.symlink(
Filename.concat(Directories.defaultVersion, "installation"),
suggestedName,
);
Lwt.return(suggestedName); Lwt.return(suggestedName);
}; };
}; };

Loading…
Cancel
Save