diff options
-rwxr-xr-x | kvmx | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1208,6 +1208,11 @@ function kvmx_rsync_to { ORIG="$1" DEST="$2" + if [ -z "$ORIG" ]; then + echo "usage $BASENAME rsync_to $GUEST <orig> [dest]" + exit 1 + fi + if [ -z "$DEST" ]; then # Error #exit 1 @@ -1240,6 +1245,11 @@ function kvmx_rsync_from { ORIG="$1" DEST="$2" + if [ -z "$ORIG" ]; then + echo "usage $BASENAME rsync_from $GUEST <orig> [dest]" + exit 1 + fi + if [ -z "$DEST" ]; then # Error #exit 1 |