Files
os/tools/vm/vmcp.sh
2026-10-25 14:11:49 +01:00

8 lines
373 B
Bash

#!/usr/bin/env bash
# Copies files to/from the Fennec OS 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[@]}"