Skip to content

Commit

Permalink
[vcpkg-hash] use current working directory to get a file (#272)
Browse files Browse the repository at this point in the history
* hash command: use current working directory

* change path initialization
  • Loading branch information
Sergii Baitala authored Nov 17, 2021
1 parent 6b03933 commit 9a4612f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vcpkg/commands.hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace vcpkg::Commands::Hash
{
(void)args.parse_arguments(COMMAND_STRUCTURE);

const Path file_to_hash = args.command_arguments[0];
const auto file_to_hash = (paths.original_cwd / args.command_arguments[0]).lexically_normal();

auto algorithm = vcpkg::Hash::Algorithm::Sha512;
if (args.command_arguments.size() == 2)
Expand Down

0 comments on commit 9a4612f

Please sign in to comment.