aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/downstream-placeholder.cc
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-29 19:57:58 -0600
committerQyriad <qyriad@qyriad.me>2024-05-30 04:21:57 +0000
commiteac3546d502522816833d90ac5f8854259d5adff (patch)
treec8de455d55d4b9a2f95a6b28172ae87b5efeb525 /src/libstore/downstream-placeholder.cc
parent68937f2b645ef5d0d34c2b8dba66619951b77c7a (diff)
package: return from shellHook correctly
If our shellHook is being run from a nested nix-shell (see 7a12bc200ยน), then (I think) it is run from a bash function due to the nesting, then `return` is correct. If its `eval`'d though, then there isn't really a correct way to early exit. So we can just unconditionally be executed in a function. Basically, we have IIFE at home. [1]: 7a12bc2007accb5022037b5a04b0e5475a8bb409 Change-Id: Iacad25cbbf66cde2911604e6061e56ad6212af7e
Diffstat (limited to 'src/libstore/downstream-placeholder.cc')
0 files changed, 0 insertions, 0 deletions