aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx10
1 files changed, 10 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 3759502..b4e7d18 100755
--- a/kvmx
+++ b/kvmx
@@ -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