Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Sep 29, 2020
1 parent 4f09c02 commit 6634ca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/autopatchelf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env julia
bin, = ARGS
NIX_CC = chomp(read(`nix-shell -p hello --run "echo \$NIX_CC"`, String))
linker = read("$NIX_CC/nix-support/dynamic-linker", String)
NIX_CC = readchomp(`nix-shell -p hello --run "echo \$NIX_CC"`)
linker = readchomp("$NIX_CC/nix-support/dynamic-linker")
run(`patchelf --set-interpreter $linker $bin`)
2 changes: 1 addition & 1 deletion bin/gbors
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env julia

if isempty(ARGS)
message = chomp(read(`git show -s --format=%s HEAD`, String))
message = readchomp(`git show -s --format=%s HEAD`)
else
message, = ARGS
end
Expand Down

0 comments on commit 6634ca5

Please sign in to comment.