diff --git a/bin/autopatchelf b/bin/autopatchelf index 2f9e83aa..43a180a6 100755 --- a/bin/autopatchelf +++ b/bin/autopatchelf @@ -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`) diff --git a/bin/gbors b/bin/gbors index bab4924d..a397388c 100755 --- a/bin/gbors +++ b/bin/gbors @@ -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