Use exec
This commit is contained in:
parent
c2542a8016
commit
6dd1146c24
|
@ -235,7 +235,7 @@ async fn main_cli() {
|
||||||
.expect("Creating a temporary file");
|
.expect("Creating a temporary file");
|
||||||
file.write_all(
|
file.write_all(
|
||||||
format!(
|
format!(
|
||||||
"#! /bin/sh\n{} --server {}\n",
|
"#! /bin/sh\nexec {} --server {}\n",
|
||||||
std::env::current_exe()
|
std::env::current_exe()
|
||||||
.expect("Getting the path of magic-nix-cache")
|
.expect("Getting the path of magic-nix-cache")
|
||||||
.display(),
|
.display(),
|
||||||
|
|
Loading…
Reference in a new issue