Skip to content

Commit

Permalink
patch-shebangs: fix dev detection
Browse files Browse the repository at this point in the history
$output = $outputDev is the right condition. ${!outputDev} is only
useful if you want a path.
  • Loading branch information
matthewbauer committed Apr 27, 2019
1 parent 61bc03c commit a1533df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/setup-hooks/patch-shebangs.sh
Expand Up @@ -105,7 +105,7 @@ patchShebangsAuto () {
# Dev output will end up being run on the build platform. An
# example case of this is sdl2-config. Otherwise, we can just
# use the runtime path (--host).
if [ "$output" != out ] && [ "$output" = "${!outputDev}" ]; then
if [ "$output" != out ] && [ "$output" = "$outputDev" ]; then
patchShebangs --build "$prefix"
else
patchShebangs --host "$prefix"
Expand Down

0 comments on commit a1533df

Please sign in to comment.