makeWrapper: fix regression introduced in #24944

In some cases wrappers could not be made. See e.g.
https://github.com/NixOS/nixpkgs/pull/24944#issuecomment-321175692
This commit is contained in:
Frederik Rietdijk 2017-08-09 12:14:20 +02:00 committed by Robin Gloster
parent 7a6d4f4710
commit 0ff782e141

View file

@ -33,7 +33,7 @@ makeWrapper() {
local params varName value command separator n fileNames
local argv0 flagsBefore flags
assertExecutable "${file}"
assertExecutable "${original}"
mkdir -p "$(dirname "$wrapper")"