copyfile uses rsync, check that args exist
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 19:16:21 +0000 (20:16 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 19:16:21 +0000 (20:16 +0100)
emulator/gnt-cluster

index 4b4a6e0..d4a46eb 100755 (executable)
@@ -2,6 +2,8 @@
 
 op=$1 ; shift
 
+test -z "$1" && exit 1
+
 if [ "$op" = "command" ] ; then
 
        show_machine=0
@@ -21,8 +23,8 @@ if [ "$op" = "command" ] ; then
 
 elif [ "$op" = "copyfile" ] ; then
 
-       scp $1 lib10:$1
-       scp $1 lib20:$1
+       rsync $1 lib10:$1
+       rsync $1 lib20:$1
 
 else
        echo "UNKNOWN [$op] $*"