8 lines
372 B
Bash
8 lines
372 B
Bash
#!/usr/bin/env bash
|
|
# Copies files to/from the SmartFox VM. Use "vm:" prefix for the remote side.
|
|
# vmcp.sh local vm:/remote vmcp.sh vm:/remote local
|
|
OPTS=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -P 2222)
|
|
args=()
|
|
for a in "$@"; do args+=("${a/#vm:/root@localhost:}"); done
|
|
exec sshpass -p smartfox scp "${OPTS[@]}" "${args[@]}"
|