Skip to content

Commit

Permalink
nix-shell: Fix file name resolution in shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Oct 19, 2017
1 parent ef1d014 commit c7af84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix-build/nix-build.cc
Expand Up @@ -278,7 +278,7 @@ void mainWrapped(int argc, char * * argv)
/* If we're in a #! script, interpret filenames
relative to the script. */
exprs.push_back(state.parseExprFromFile(resolveExprPath(lookupFileArg(state,
inShebang && !packages ? absPath(i, dirOf(script)) : i))));
inShebang && !packages ? absPath(i, absPath(dirOf(script))) : i))));
}

/* Evaluate them into derivations. */
Expand Down

0 comments on commit c7af84c

Please sign in to comment.