some fixes for updates q7s-cp script
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
parent
acfd6bfd5e
commit
00eeeade3f
@ -68,20 +68,28 @@ def build_cmd(args):
|
|||||||
cmd = "scp "
|
cmd = "scp "
|
||||||
if args.recursive:
|
if args.recursive:
|
||||||
cmd += "-r "
|
cmd += "-r "
|
||||||
|
address = ""
|
||||||
|
port_args = ""
|
||||||
|
target = args.target
|
||||||
if args.flatsat:
|
if args.flatsat:
|
||||||
cmd += f"{args.source} eive@flatsat.eive.absatvirt.lw:{target}"
|
address = "eive@flatsat.eive.absatvirt.lw"
|
||||||
|
else:
|
||||||
|
address = "root@localhost"
|
||||||
|
port_args=f"-P {args.port}"
|
||||||
|
if args.invert:
|
||||||
|
if target == "":
|
||||||
|
target = "."
|
||||||
else:
|
else:
|
||||||
target = args.target
|
target = args.target
|
||||||
if args.invert and target == "":
|
|
||||||
target = "."
|
|
||||||
elif target == "":
|
|
||||||
target = f"/tmp"
|
|
||||||
if args.invert:
|
|
||||||
cmd += f"-P {args.port} root@localhost:{args.source} {target}"
|
|
||||||
else:
|
else:
|
||||||
cmd += f"-P {args.port} {args.source} root@localhost:{target}"
|
if target == "":
|
||||||
if args.target:
|
target = f"/tmp"
|
||||||
cmd += args.target
|
else:
|
||||||
|
target = args.target
|
||||||
|
if args.invert:
|
||||||
|
cmd += f"{port_args} {address}:{args.source} {target}"
|
||||||
|
else:
|
||||||
|
cmd += f"{port_args} {args.source} {address}:{target}"
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user