Skip to content

Commit

Permalink
Fix #48: Installation fails if profile file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Oct 23, 2019
1 parent 34b1576 commit 6535f8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
### New/Changed Features
* Add support for ZSH

### Bugs Fixed
* [Issue 48](https://github.com/jacob-carlborg/dvm/issues/48): Installation
fails if `~/.bash_profile` doesn't exist

## Version 0.5.1

### New/Changed Features
Expand Down
4 changes: 2 additions & 2 deletions dvm/commands/DvmInstall.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module dvm.commands.DvmInstall;

import std.algorithm : each, filter, map;
import std.array : array;
import std.file : exists, thisExePath;
import std.file : append, exists, thisExePath;
import std.path : buildPath;

import tango.io.device.File;
Expand Down Expand Up @@ -142,7 +142,7 @@ private:
[home.buildPath(defaultProfile)] : existingPofilePaths.array;

verbose("Installing dvm in the shell loading file(s): ", profilePaths.join(", "));
profilePaths.each!(path => File.append(path, sh.content));
profilePaths.each!(path => append(path, sh.content));
println(postInstallInstructions);
}

Expand Down

0 comments on commit 6535f8c

Please sign in to comment.