Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: use Rust stdlib to get path to current exe
Lars Wirzenius committed 1 year ago
commit 749e8239852aa4591277d946e585607dc4f464aa
parent d46b0b6d113ec86c8d1443c1d354ac7ce216f684
1 file changed +1 -1
modified radicle-cli/src/commands/debug.rs
@@ -68,7 +68,7 @@ fn debug(profile: &Profile) -> anyhow::Result<()> {
    }));

    let debug = DebugInfo {
-
        rad_exe: if let Ok(filename) = std::fs::read_link("/proc/self/exe") {
+
        rad_exe: if let Ok(filename) = std::env::current_exe() {
            Some(filename)
        } else {
            None