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

9 lines
119 B
Bash
Raw Normal View History

2019-01-26 16:00:03 +00:00
#!/bin/sh
# echo $@
# set -x
src=$1; shift
dst=$1; shift
real_dst=$(echo $dst | sed 's,:,,')
cp -L "$src" "$real_dst"