fix remote bin copy
This commit is contained in:
parent
d98040d839
commit
68e1c660a8
2
rcargo
2
rcargo
@ -37,7 +37,7 @@ ERR_DEPENDENCY = 2
|
|||||||
|
|
||||||
#TODO: binary and package names might differ: use `cargo install --list to extract bin name`
|
#TODO: binary and package names might differ: use `cargo install --list to extract bin name`
|
||||||
def inst_get_binary(conn: Connection, package: str, debug: bool = False) -> None:
|
def inst_get_binary(conn: Connection, package: str, debug: bool = False) -> None:
|
||||||
find_bin = f'cargo install --list | grep -A1 {package} | sed -nE "s/ *//; 2 p"'
|
find_bin = f'cargo install --list | grep -A1 ^{package} | sed -nE "s/ *//; 2 p"'
|
||||||
bin_name = ''
|
bin_name = ''
|
||||||
try:
|
try:
|
||||||
res = conn.run(find_bin, echo=False, hide='out')
|
res = conn.run(find_bin, echo=False, hide='out')
|
||||||
|
Loading…
Reference in New Issue
Block a user