Skip to content
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.

Commit

Permalink
fix: trim trailing slashes from directories as Tentacle.exe commands …
Browse files Browse the repository at this point in the history
…do not like them
  • Loading branch information
cruikshj committed Apr 18, 2016
1 parent ae49e4a commit df1be10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nautilus/InstallCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ protected override int Run(OctopusProxy octopus)
installLocation = InstallLocation ?? Path.Combine(Environment.GetEnvironmentVariable("PROGRAMFILES"), @"Octopus Deploy\Tentacle");

var homeLocation = HomeLocation ?? Environment.GetEnvironmentVariable("SYSTEMDRIVE") + @"\Octopus";
homeLocation = homeLocation.TrimEnd(Path.DirectorySeparatorChar);

var appLocation = AppLocation ?? Path.Combine(homeLocation, "Applications");
appLocation = appLocation.TrimEnd(Path.DirectorySeparatorChar);

var thumbprint = Thumbprint;
if (thumbprint == null)
Expand Down

0 comments on commit df1be10

Please sign in to comment.