cdist/hacking/preos-sh/remote-copy.sh

9 lines
119 B
Bash
Raw Permalink Normal View History

2019-09-20 05:15:37 +00:00
#!/bin/sh
# echo $@
# set -x
src=$1; shift
dst=$1; shift
real_dst=$(echo $dst | sed 's,:,,')
cp -L "$src" "$real_dst"