cdist/hacking/preos-sh/remote-copy.sh
2019-09-20 07:15:37 +02:00

8 lines
119 B
Bash

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