patchShebangs: Ignore outputs that don't exist yet

This commit is contained in:
Eelco Dolstra 2015-09-17 16:54:07 +02:00
parent 8dc7073546
commit 276e38a1bb

View File

@ -5,7 +5,7 @@
# rewritten to /nix/store/<hash>/bin/python. Interpreters that are
# already in the store are left untouched.
fixupOutputHooks+=('if [ -z "$dontPatchShebangs" ]; then patchShebangs "$prefix"; fi')
fixupOutputHooks+=('if [ -z "$dontPatchShebangs" -a -e "$prefix" ]; then patchShebangs "$prefix"; fi')
patchShebangs() {
local dir="$1"